UIAlertController
来源:互联网 发布:网络安全法的立法定位 编辑:程序博客网 时间:2024/05/23 05:08
看一下如何实现下面的效果
UIAlertController *alert = [UIAlertController alertControllerWithTitle:@"操作提示" message:@"真的要注销吗?" preferredStyle:UIAlertControllerStyleActionSheet]; UIAlertAction *tem1 = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleDestructive handler:^(UIAlertAction * _Nonnull action) { [self.navigationController popViewControllerAnimated:YES]; }]; UIAlertAction *tem2 = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:nil]; [alert addAction:tem1]; [alert addAction:tem2]; [self.navigationController presentViewController:alert animated:YES completion:nil];
就这么easy
1 0
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIalertController
- UIAlertController
- UIalertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- UIAlertController
- java入门程序100例学习笔记(003杨辉三角)
- XP下配置IIS网站的过程
- PHP就业情况分析
- Selector 与 Action 与 NSObjectProtocol 问题
- 欢迎使用CSDN-markdown编辑器
- UIAlertController
- 【黑马程序员】方法、数组、面向对象、封装、继承——Java复习笔记
- puppet入门
- Java对象序列化追加的问题,以及Java的读取多个对象的问题解决方法
- 【Python】遍历文件夹,并命名文件
- angularjs嵌套作用域问题
- bzoj1613 【Usaco2007 Jan】Running 贝茜的晨练计划
- 参数化中复制部件和调整部件原点的相关问题!~
- iOS-AutoLayout中动画使用的细节 和 iOS layout机制