Skip to content

Instantly share code, notes, and snippets.

@justin
Created June 23, 2010 20:22
Show Gist options
  • Save justin/450491 to your computer and use it in GitHub Desktop.
Save justin/450491 to your computer and use it in GitHub Desktop.
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