Created
April 18, 2013 15:52
-
-
Save jbradforddillon/5413839 to your computer and use it in GitHub Desktop.
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
// Classic delegation | |
- (void)myOperationDidSucceed:(id data) { | |
[myView hideLoadingIndicator]; | |
// Do something with data | |
} | |
- (void)myOperationDidFail:(NSError *)error { | |
[myView hideLoadingIndicator]; | |
// Do something with the error | |
} | |
- (void)myOperationDidReachAnotherOutcome:(NSDictionary *info) { | |
[myView hideLoadingIndicator]; | |
// Do something with info | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment