Created
August 1, 2012 17:36
-
-
Save versluis/3229107 to your computer and use it in GitHub Desktop.
How to react to a UIAlertView
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
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex { | |
[self myMethod]; | |
if (buttonIndex ==0) { | |
NSLog(@"User pressed first button"); | |
} else if (buttonIndex == 1) { | |
NSLog(@"User pressed second button"); | |
} else { | |
NSLog(@"There were even more buttons?"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment