Method to create & show confirmation iOS SDK


/ Published in: Objective C
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. - (void) showConfirmation:(NSString*)title withMessage:(NSString *) message {
  2. UIAlertView* confirmationView = [[UIAlertView alloc] initWithTitle:title
  3. message:message
  4. delegate:self
  5. cancelButtonTitle:NSLocalizedString(@"No", @"")
  6. otherButtonTitles:NSLocalizedString(@"Yes", @""), nil];
  7. [confirmationView show];
  8. [confirmationView release];
  9. }

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.