Skip to content

Instantly share code, notes, and snippets.

@RuiAAPeres

RuiAAPeres/gist:7379148

Last active Dec 27, 2015
Embed
What would you like to do?
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