Last active
December 27, 2015 19:39
-
-
Save RuiAAPeres/7379148 to your computer and use it in GitHub Desktop.
Returning a Class that complies to a given protocol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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