User Tools

Site Tools


objective-c:uikit.framework:uialerview.h

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

objective-c:uikit.framework:uialerview.h [2024/02/16 01:06] (current)
Line 1: Line 1:
 +===== 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 ====
 +
 +<code objc>
 +#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]; 
 +}
 +</code>

on the occasion of the current invasion of Russia in Ukraine

Russian Stop this War
objective-c/uikit.framework/uialerview.h.txt · Last modified: 2024/02/16 01:06 (external edit)

Impressum Datenschutz