Programming Reference/Librarys
Question & Answer
Q&A is closed
This is an old revision of the document!
The UIAlertView class is used for displaying alerts inside an application.
Example:
#import <UIKit/UIKit> - (void) viewDidLoad { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Sample Alert" message:@"this is a simple message!" delegate:self cancelButtonTitle:@"Cancel" otherButtonsTitle:@"HI", @"Bye", nil]; // display alert view [alert show]; // take it out of memory [alert release]; }