Skip to content

Instantly share code, notes, and snippets.

@jdewind
Created April 7, 2010 17:03
Show Gist options
  • Save jdewind/359134 to your computer and use it in GitHub Desktop.
Save jdewind/359134 to your computer and use it in GitHub Desktop.
+ (void)showOneConfirmationAlert:(NSMutableDictionary *)externalState {
[BlockConfirmationAlert show:@"Are you sure about this?"
confirmed:^(UIAlertView *alertView) {
//...
NSLog([externalState objectForKey:@"Key"]);
}
canceled:^(UIAlertView *alertView) {
//...
NSLog([externalState objectForKey:@"DifferentKey"]);
}];
}
+ (void)showAnotherConfirmationAlert:(NSMutableDictionary *)externalState {
[BlockConfirmationAlert show:@"Again, are you sure?"
confirmed:^(UIAlertView *alertView) {
//...
NSLog([externalState objectForKey:@"AnotherKey"]);
}
canceled:^(UIAlertView *alertView) {
//...
NSLog([externalState objectForKey:@"YetAnotherKey"]);
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment