iOS 在NSObject的子类中使用UIAlertController
来源:互联网 发布:台湾的军事实力 知乎 编辑:程序博客网 时间:2024/05/18 02:09
UIAlertController * alert = [UIAlertController alertControllerWithTitle:@"温馨提示" message:@"打开" preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction * cancelAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
}];
[alert addAction:cancelAction];
UIViewController * rootViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
[rootViewController presentViewController:alert animated:YES completion:^{
}];
UIAlertAction * cancelAction = [UIAlertAction actionWithTitle:@"确定" style:UIAlertActionStyleCancel handler:^(UIAlertAction * _Nonnull action) {
}];
[alert addAction:cancelAction];
UIViewController * rootViewController = [[[UIApplication sharedApplication] keyWindow] rootViewController];
[rootViewController presentViewController:alert animated:YES completion:^{
}];
0 0
- iOS 在NSObject的子类中使用UIAlertController
- iOS --- 在NSObject子类的执行代码中实现UIViewController的跳转
- iOS 在NSObject子类的执行代码中实现UIViewController的跳转
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 数据库概念
- ES6中, Promise/then的用法, 躲坑秘籍
- Redis入门教程:特性及数据类型的操作
- 抓包工具的使用之三---fiddler命令行和HTTP断点调试
- 初步实现带有数字的字符串的排序(数字区别大小)
- iOS 在NSObject的子类中使用UIAlertController
- java的堆和栈
- 告别2016,展望2017
- Could not reserve enough space for object heap
- JMS API-JMS API概述
- linux 文件系统
- Bitmap位图随触摸点移动
- 正则表达式RegExp
- 欢迎使用CSDN-markdown编辑器