Created
June 23, 2010 20:22
-
-
Save justin/450491 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
NSString *alertMessage = NSLocalizedString(@"Are you sure you want to sign out?", nil); | |
SGAlertView *alertView = [[SGAlertView alloc] initWithTitle:nil message:alertMessage]; | |
[alertView addButtonWithTitle:NSLocalizedString(@"Cancel", nil) block:^{}]; | |
[alertView addButtonWithTitle:NSLocalizedString(@"Sign out", nil) block:^{ | |
// Handle the sign out stuff | |
}]; | |
[alertView show]; | |
[alertView release]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment