UIAlertControllerd的使用
来源:互联网 发布:excel表格数据取整 编辑:程序博客网 时间:2024/06/13 23:47
UIAlertController *alert = [UIAlertControlleralertControllerWithTitle:nilmessage:@"重新登录"preferredStyle:UIAlertControllerStyleAlert];
[alert addAction:[UIAlertActionactionWithTitle:@"确定"style:UIAlertActionStyleCancelhandler:^(UIAlertAction *_Nonnull action) {
//点击确定后执行这里面的代码
}]];
[self.navigationControllerpresentViewController:alert animated:YEScompletion:nil];
//注:completion,顾名思义-->完成,结束,实现。completion参数一般是个代码块Block,完成之后/结束之后/实现之后的代码块;不需要做任何操作可置空nil。
//注:handler也是个代码块
0 0
- UIAlertControllerd的使用
- GUID使用的使用
- ${}的使用
- 的使用
- @[],@()的使用
- ->的使用
- +、-、*、/、%的使用
- &&的使用
- %:的使用
- Makefile中使用$$的使用
- Makefile中使用$$的使用
- Red5的使用--使用日志
- prefernce的使用具体使用
- 【工具使用】git 的使用
- 关于使用AsyncTaskLoader的使用
- 使用CABasicAnimation的基本使用
- 使用RocketMQ的客户端使用
- gulp的使用基本使用
- Caffe FastRCNN installing (recommand reference)
- 四大组件之Service初步
- UITabBar初谈
- java 实现二分归并排序
- C++实验3
- UIAlertControllerd的使用
- 原码、反码、补码----详解
- 50、内部类详解
- PHP基础(PHP的数据类型)
- 单例模式
- 杭州电子科技大学(HDU)ACM 刷题----------贪心算法之2021
- Arcgis engine编程报错查询
- 让开机更加简便
- 在配置spring配置文件时报错,解决办法