/ Published in: Objective C
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* Simple alert for iOS applications */ // Alloc and init the alert object UIAlertView *alert = [[UIAlertView alloc] // Alert window title initWithTitle: NSLocalizedString(@"",nil) // Message that will be displayed message: NSLocalizedString(@"",nil) // UIAlertView delegate (No protocol conformance required) delegate: self // Text for the main button cancelButtonTitle: NSLocalizedString(@"No",nil) // A second button or just nil for none otherButtonTitles: NSLocalizedString(@"Yes",nil), nil]; // Display the alert [alert show]; // Release the object [alert release];