Posted By

yasirmturk on 09/21/11


Tagged

iphone confirmation iPad ios


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

yasirmturk
cnathan


Method to create & show confirmation iOS SDK


 / Published in: Objective C
 

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

  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  

You need to login to post a comment.