Posted By

ryantxr on 12/23/12


Tagged

alert


Versions (?)

IOS Alert


 / Published in: iPhone
 

Simple code to show an alert

  1. NSString *message = @"My message";
  2. UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"Alert" message:message delegate:self cancelButtonTitle:@"Close" otherButtonTitles:nil, nil];
  3. [alert show];

Report this snippet  

You need to login to post a comment.