Return to Snippet

Revision: 51346
at September 21, 2011 20:42 by yasirmturk


Initial Code
- (void) showConfirmation:(NSString*)title withMessage:(NSString *) message {
	UIAlertView* confirmationView = [[UIAlertView alloc] initWithTitle:title 
                                                               message:message 
                                                              delegate:self 
                                                     cancelButtonTitle:NSLocalizedString(@"No", @"") 
                                                     otherButtonTitles:NSLocalizedString(@"Yes", @""), nil];
	[confirmationView show];
	[confirmationView release];
}

Initial URL


Initial Description
Use like this: [self showConfirmation:@"May we send you information and offers by Email?" withMessage:@"1 email per week maximum"];

Initial Title
Method to create & show confirmation iOS SDK

Initial Tags
iphone, ios

Initial Language
Objective C