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

}

One response to “iPhone SDK Alert Box”

  1. […] ဘာလို့လည်းဆိုတော့ iPhone SDK Alert Box ဆိုတဲ့ post လေး ရေးခဲ့ဘူးလို့ပါ။ […]

Leave a Reply

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

Discover more from Saturngod

Subscribe now to keep reading and get access to the full archive.

Continue reading