/ Published in: Objective C
URL: http://www.idev101.com/code/User_Interface/UIAlertView.html
Extended use of the UIAlertView for showing popups
Expand |
Embed | Plain Text
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Really reset?" message:@"Do you really want to reset this game?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil] autorelease]; // optional - add more buttons: [alert addButtonWithTitle:@"Yes"]; [alert show]; [alert release];
Comments
Subscribe to comments
You need to login to post a comment.

This will cause a memory leak. add
[alert release];
after line 4. in order to properly manage memory.