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];

}

1 Comment

Leave a Reply to Meet the new language | Saturngod Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.