Created
March 25, 2013 06:24
-
-
Save hlxwell/5235250 to your computer and use it in GitHub Desktop.
UIAlertView+Block Usage
This file contains hidden or 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 *alertView = [UIAlertView alertViewWithTitle:@"Alert" message:@"Are you sure?"]; | |
[alertView addButtonWithTitle:@"Yes" handler:^{ | |
// YES | |
}]; | |
[alertView addButtonWithTitle:@"No" handler:^{ | |
// NO | |
}]; | |
[alertView show]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment