Created
January 22, 2014 11:21
-
-
Save penumbrasoftware/8557122 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
UIAlertView *alert = [[UIAlertView alloc] | |
initWithTitle:@"Title goes here" | |
message:@"Message goes here?" | |
delegate:self | |
cancelButtonTitle:@"Cancel" | |
otherButtonTitles:@"other buttons go here, nil]; | |
[alert show]; | |
- (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex | |
{ | |
NSString *title = [alertView buttonTitleAtIndex:buttonIndex]; | |
if([title isEqualToString:@"Button pressed goes here"]) | |
{ | |
Action goes here | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment