ios9中的提示框
来源:互联网 发布:json作用 编辑:程序博客网 时间:2024/05/29 10:59
ios8以前苹果使用UIAlert来显示提示框,不过ios8后苹果使用全新的 UIAlertController
UIAlertController *alert = [UIAlertControlleralertControllerWithTitle:@"提示"message:@"按钮被点击了"preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction* ok = [UIAlertActionactionWithTitle:@"确定"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *_Nonnull action) {
//点击按钮的响应事件;
NSLog(@"确定提示");
}];
UIAlertAction* cancle = [UIAlertActionactionWithTitle:@"取消"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *_Nonnull action) {
//点击按钮的响应事件;
NSLog(@"取消提示");
}];
[alert addAction:ok];
[alert addAction:cancle];
//弹出提示框;
[selfpresentViewController:alertanimated:truecompletion:nil];
//preferredStyle可以改变提示框弹出的形式 UIAlertControllerStyleActionSheet代表从底部弹出
- ios9中的提示框
- iOS9 提示框的使用
- ios9 提示框的正确使用
- iOS -iOS9中提示框(UIAlertController)的常见使用
- iOS9使用提示框的正确实现方式
- iOS9使用提示框的正确实现方式
- iOS9使用提示框的正确实现方式
- UIAlertView ios9 开始废弃 使用UIAlertController弹框提示
- iOS-提示框的正确实现方式(iOS9)
- iOS9中使用提示框的正确实现方式
- ios9中的一些坑
- iOS9中的那些坑
- iOS9中的网络问题
- iOS9使用提示框进行文本输入的正确实现方式
- iOS9之后支付宝的回调以及iOS8之后提示框UIAlertController
- iOS9使用提示框的正确实现方式(UIAlertView is deprecated)
- iOS9怎么在AlertControler 的提示框点击确定实现更改
- iOS9怎么在AlertControler 的提示框点击确定实现更改
- 信息学奥林匹克竞赛-你的飞碟在这儿
- web服务器下出现大量TIME_WAIT
- linux网络对时命令
- 快速开发平台CreateList的用法
- C 联合体 union
- ios9中的提示框
- property的几个属性区别
- shell编程控制结构:expr、let、for、while、until、shift、if、case、break、continue、函数、select
- Oracle分析函数详解
- Android:解决打开activity之后 屏幕初始位置不是顶部问题
- request获取客户端ip
- sking
- android 优化内存溢出之三
- Andorid获取状态栏高度