Method to create & show alert iOS SDK


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



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

URL: http://yasirmturk.com/blog

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.