iPhone SDK Alert Box

Just call alert box.

- (IBAction)buttonPressed:(id)sender {

NSString *favouriteMac = [sender titleForState:UIControlStateNormal];

NSString *alertViewText = [[NSString alloc] initWithFormat:@"Simple",favouriteMac];

UIAlertView *alert=[[UIAlertView alloc] initWithTitle:@"Favourite"

message:alertViewText

delegate:nil

cancelButtonTitle:@"No"

otherButtonTitles:@"YES",nil];

[alert show];

[alert release];

}


 
0 Kudos
Don't
move!
1 Comment

Leave a Reply