User Tools

Site Tools


Sidebar

Programming Reference/Librarys

Question & Answer

Q&A is closed







objective-c:uikit.framework:uialerview.h

UIAlertView


UIAlertView is a standard class in the UIKit framework. It is commonly used to display the state of something, or even just be used a way to communicate to the user in iOS applications.

Code

#import <UIKit/UIKit>
 
- (void) viewDidLoad {
   UIAlertView *alert = [[UIAlertView alloc]
                          initWithTitle:@"Title Message"
                          message:@"This is a simple message!"
                          delegate:self
                          cancelButtonTitle:@"Cancel"
                          otherButtonTitle:@"Yes", @"No", nil];   // the nil is required because the other button
                                                                   // title(s) are put into an array
 
    // display the alert
    [alert show];
 
    // tell the program to delete the alert
    // from memory
    [alert release]; 
}
advertising
objective-c/uikit.framework/uialerview.h.txt · Last modified: 2013/06/14 01:41 by Anthony

Impressum Datenschutz