UIAlertView 警告框

 

    UIAlertView *alert =[[UIAlertViewalloc

                          initWithTitle:@"You tap the buton,boy!" 

                          message: [NSString stringWithFormat:@"%@",buttonTitle]

                          delegate:nil 

                          cancelButtonTitle: @"OK."

                        otherButtonTitles: nil];

    [alert show];

    [alert release];

原文地址:https://www.cnblogs.com/zander/p/2591391.html