// Created By 郭仔 2015年04月14日22:05:33
弹出警告框的类:
1. 最简单的用法
UIAlertView*alert = [[UIAlertView alloc]initWithTitle:@"提示"
message:@"这是一个简单的警告框!"
delegate:nil
cancelButtonTitle:@"确定"
otherButtonTitles:nil];
[alert show];
[alert release]; 2.多了按钮:
UIAlertView*alert = [[UIAlertView alloc]initWithTitle:@"提示"
message:@"请选择一个按钮:"
delegate:nil
cancelButtonTitle:@"取消"
otherButtonTitles:@"按钮一", @"按钮二", @"按钮三",nil];
[alert show];
[alert release]; 其他好多方法属性可以看API
。。。。。原文:http://blog.csdn.net/guoxianzhuang/article/details/45048603