1.创建UIAlertView的步骤
(1)开辟空间并初始化(初始化时给出视图的位置以及大小,即哪里要弹窗视图).
(2)调用UIAlertView的show方法,呈现提示框.
(3)释放UIAlertView对象
2.UIAlertView示例
UIAlertView *alertView = [[UIAlertView alloc]initWithTitle:@"提" message:@"请妥善保管好你的密码"delegate:nil cancelButtonTitle:@"取消"otherButtonTitles:@"确定", nil];
[alertView show];
[alertView release];
转载于:https://blog.51cto.com/7300377/1403663