This shows you the differences between two versions of the page.
objective-c.uikit.framework:uialerview.h [2013/06/19 11:37] 188.103.65.234 removed |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | The UIAlertView class is used for displaying alerts inside an application. | ||
- | Example: | ||
- | |||
- | <code objc> | ||
- | #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]; | ||
- | } | ||
- | </code> |