Showing posts with label Alert. Show all posts
Showing posts with label Alert. Show all posts

Tuesday, April 19, 2011

Adding Multiple Buttons to an Alertview and specifying their actions

Step 1. Open up our alertview project.. if you haven’t done that yet please watch the tutorial on that and then comeback

Alertview Tutorial:CLICK HERE

Step 2. Navigate to the (***ViewController.m)- the stars just represent the name

Step 3. Navigate to the alertview action (where the code is) it should look something like this

-(IBAction)pushAlert {

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@”This is a alert view” message:@”Watever” delegate:nil cancelButtonTitle:@”Cancel” otherButtonTitles:nil];
[alert show];
[alert release];

}