Codesnipp.it Social Code Sharing

Amber Weinberg

Adding an alert message to a pressed button

by Amber Weinberg on Jul 05, 2010

// From Beginning iPhone 3 Development" book by Dave Mark and Jeff LaMarche - (IBAction)blueButtonPressed { UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Blue view button pressed" message:@"You pressed the button on the blue view" cancelButtonTitle:@"Yep I did" otherButtonTitles:nil]; [alert show]; [alert release]; }

Can't see the comments? Please login first :)