Skip to content

Instantly share code, notes, and snippets.

@sumardi
Created February 1, 2011 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sumardi/805738 to your computer and use it in GitHub Desktop.
Save sumardi/805738 to your computer and use it in GitHub Desktop.
iPhoneDev - Creating and showing an alert.
UIAlertView *alert = [[[UIAlertView alloc] initWithTitle:@"Really reset?" message:@"Do you really want to reset this game?" delegate:self cancelButtonTitle:@"Cancel" otherButtonTitles:nil] autorelease];
[alert addButtonWithTitle:@"Yes"];
[alert show];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment