UIAlertController,取代UIAlertView和UIActionSheet
来源:互联网 发布:安卓手机视频录像软件 编辑:程序博客网 时间:2024/05/22 03:07
UIAlertController *alert = [UIAlertControlleralertControllerWithTitle:@"提示"message:@"确认******" preferredStyle: UIAlertControllerStyleAlert];
[alert addAction:[UIAlertActionactionWithTitle:@"否"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *_Nonnull action) {
//点击按钮的响应事件;
}]];
[alert addAction:[UIAlertActionactionWithTitle:@"是"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *_Nonnull action) {
//点击按钮的响应事件;
}]];
//弹出提示框;
[selfpresentViewController:alert animated:truecompletion:nil];
阅读全文
0 0
- UIAlertController,取代UIAlertView和UIActionSheet
- 【UI进阶】UIAlertController替代UIAlertView和UIActionSheet
- IOS-UIAlertController(UIAlertView和UIActionSheet二合一)
- UIAlertController(UIActionSheet、UIAlertView)
- UIAlertController UIAlertAction (UIAlertView, UIActionSheet)
- UIAlertController(UIAlertView && UIActionSheet)
- 【学习ios之路:UI系列】UIAlertView. UIActionSheet 和 UIAlertController
- IOS基础UI之(五)UIAlertView、UIActionSheet和UIAlertController详解
- IOS8以上版本,使用UIAlertController代替 UIActionSheet和UIAlertView
- iOS 8 引入的 UIActionSheet 和 UIAlertView 的替代品 - UIAlertController
- IOS8以上版本,使用UIAlertController代替 UIActionSheet和UIAlertView
- iOS8中提示框的使用UIAlertController(UIAlertView和UIActionSheet)
- iOS8 UIAlertView 和 UIActionSheet 的新用法 UIAlertController详解
- IOS8以上版本,使用UIAlertController代替 UIActionSheet和UIAlertView
- 对话框视图UIAlertView,上拉菜单UIActionSheet,以及9.0之后完全取代他们的的UIAlertController
- iOS8 UIAlertController 创建UIAlertView以及UIActionSheet
- UIAlertController replaces the UIActionSheet and UIAlertView
- UIAlertController UIAlertAction (UIAlertView, UIActionSheet)(最好)
- 第十五周项目一
- 正则表达式中的贪婪模式
- 详解JavaScript Document对象
- 一个好的可视化作品
- qdpm8.0中文翻译文件
- UIAlertController,取代UIAlertView和UIActionSheet
- ICMP类型
- 数据结构实验之图论九:最小生成树
- 定义一个图形类及其子类(三角形类和矩形类),分别计算其面积和周长
- 技术共享之数据库框架GreenDao的使用以及二次封装
- python利用opencv标注bounding box
- 《Appium学习中遇到的问题》之“运行脚本时driver = new AndroidDriver(new URL(serverURL), capabilities)报错”
- FreeSWITCH核心命令
- Spark高级数据分析