【UIKit】-9-UIAlertController - IOS8 包括 alert 和 sheet
来源:互联网 发布:暂停非正规网络问诊 编辑:程序博客网 时间:2024/06/03 06:14
简单使用,
UIAlertController *alc = [UIAlertControlleralertControllerWithTitle:@"title"message:@"message"preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction *cancel =[UIAlertActionactionWithTitle:@"cancel"style:UIAlertActionStyleCancelhandler:^(UIAlertAction *action) {
NSLog(@"cancel");
}];
UIAlertAction *ok = [UIAlertActionactionWithTitle:@"ok"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *action) {
NSLog(@"ok");
}];
UIAlertAction *ok2 = [UIAlertActionactionWithTitle:@"ok"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *action) {
NSLog(@"ok2");
}];
[alc addAction:cancel];
[alc addAction:ok];
[alc addAction:ok2];
[self presentViewController:alc animated:YEScompletion:nil];
- 【UIKit】-9-UIAlertController - IOS8 包括 alert 和 sheet
- UIKit--UIAlertController
- IOS8 UIAlertController
- ios8 下面的alert和actionsheet
- IOS8 UIAlertController 弹框
- 转-IOS8 UIAlertController 弹框
- IOS8 新增UIAlertController类
- iOS8 UIAlertController 弹框
- iOS8的UIAlertController
- ios8之后的UIAlertController
- IOS8 UIAlertController 弹框
- iOS8新特性-UIAlertController
- IOS8 UIAlertController 提示框
- iOS8.0-----UIAlertController
- iOS8之后UIAlertController
- IOS8以上版本,使用UIAlertController代替 UIActionSheet和UIAlertView
- IOS8以上版本,使用UIAlertController代替 UIActionSheet和UIAlertView
- iOS8中提示框的使用UIAlertController(UIAlertView和UIActionSheet)
- iOS开发之沙盒机制(SandBox)
- HDU - 1312 - Red and Black
- (C)字节对齐#pragma pack()
- 关于射频,我有话说
- ios学习路线
- 【UIKit】-9-UIAlertController - IOS8 包括 alert 和 sheet
- antlr学习
- Android Context上下文,要注意的事项
- C语言链表(0)
- 常见音频接口的若干问题
- [第1章]数据:NSUserDefaults的使用(续)
- UNIX网络编程卷一:第二章 传输层:TCP、UDP
- Android之Camera的简单实例
- Python的socket模块详解