首页 > 其他 > 详细

弹框控件 UIAlertView UIActionSheet

时间:2016-04-03 18:59:02      阅读:189      评论:0      收藏:0      [点我收藏+]

 

// 创建弹框

 


从底部弹出,一般用于危险操作

UIActionSheet *sheet = [[UIActionSheet alloc] initWithTitle:@"恭喜通关" delegate:nil cancelButtonTitle:@"取消" destructiveButtonTitle:@"确定" otherButtonTitles:@"其他", nil];

[sheet showInView:self.view];

从中间弹出

UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"恭喜" message:@"通关了!!!!敬请期待!!!!" delegate:self cancelButtonTitle:@"取消" otherButtonTitles:@"好的", nil];
alert.tag = 10;
[alert show];

弹框控件 UIAlertView UIActionSheet

原文:http://www.cnblogs.com/ERICSUN12/p/5350286.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!