Skip to content

Instantly share code, notes, and snippets.

@RuiAAPeres
Last active December 27, 2015 19:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RuiAAPeres/7379148 to your computer and use it in GitHub Desktop.
Save RuiAAPeres/7379148 to your computer and use it in GitHub Desktop.
Returning a Class that complies to a given protocol
Class sportsFeedManager = (Class <RPSportsBoundryProtocol>)[RPInteractor sportsFeedManager];
[sportsFeedManager yahooSportsFeedWithCompletion:^(NSArray *sportsFeeds, NSError *error)
{
if (error)
{
// TODO: Handle the error;
}
else
{
// TODO: Handle a successful eresult;
}
}];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment