ios UIAlertController使用
来源:互联网 发布:dns默认端口号 编辑:程序博客网 时间:2024/06/07 02:43
UIAlertController *alertController = [UIAlertControlleralertControllerWithTitle:@"显示的标题"message:@"标题的提示信息"preferredStyle:UIAlertControllerStyleAlert];
[alertControlleraddAction:[UIAlertActionactionWithTitle:@"取消"style:UIAlertActionStyleCancelhandler:^(UIAlertAction *_Nonnull action)
{
NSLog(@"cancel");
}]];
[alertControlleraddAction:[UIAlertActionactionWithTitle:@"确定"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *_Nonnull action) {
NSLog(@"sure");
}]];
[alertControlleraddAction:[UIAlertActionactionWithTitle:@"确定"style:UIAlertActionStyleDestructivehandler:^(UIAlertAction *_Nonnull action) {
NSLog(@"软荏荏");
}]];
[alertControlleraddTextFieldWithConfigurationHandler:^(UITextField *_Nonnull textField) {
NSLog(@"block");
}];
// 由于它是一个控制器直接modal出来就好了
[selfpresentViewController:alertControlleranimated:YEScompletion:nil];
- iOS UIAlertController 使用介绍
- ios UIAlertController使用
- iOS 8中使用UIAlertController
- iOS 8中使用UIAlertController
- iOS 8 中UIAlertController使用
- iOS-UIAlertController的另类使用
- iOS UIAlertController使用方法如何使用
- iOS开发进阶-UIAlertController使用
- iOS,UIAlertController
- ios UIAlertController
- iOS UIAlertController
- iOS - UIAlertController
- iOS UIAlertController
- ios UIAlertController
- iOS UIAlertController
- iOS UIAlertController
- 在iOS 8中使用UIAlertController
- 在iOS 8中使用UIAlertController
- 关于“属性”的几个问题,也许面试会问到哦~
- python基础篇日记
- nyoj 35 表达式求值
- DL-1: Tips for Training Deep Neural Network
- 关于“参数”的几个问题,也许面试会问到哦~
- ios UIAlertController使用
- 关于“构造函数”中的几个小问题,也许面试会问到哦~
- 神奇的decimal,也许面试会问到哦~
- 看看这个常常被初级程序员弄不懂的 “事件”
- 入门级Hadoop集群搭建详细教程(七):SSH免密码登陆
- C/C++ 知识汇总
- 一个类型转换而引起的三级事件的一些思考
- LeetCode刷题【Array】 Unique Paths
- 深入浅出设计模式之状态模式、代理模式