iOS UIAlertController使用方法如何使用
来源:互联网 发布:ps3无限验证游戏数据 编辑:程序博客网 时间:2024/05/17 05:17
UIAlertController *alertController = [UIAlertControlleralertControllerWithTitle:@"密码"message:nilpreferredStyle:UIAlertControllerStyleAlert];
[alertController addTextFieldWithConfigurationHandler:^(UITextField *textField) {
// 可以在这里对textfield进行定制,例如改变背景色
textField.placeholder = @"请输入私人直播室的密码";
}];
UIAlertAction *cancelAction = [UIAlertAction actionWithTitle:@"Cancel" style:UIAlertActionStyleCancelhandler:^(UIAlertAction *action) {
NSLog(@"The \"Okay/Cancel\" alert's cancel action occured.");
}];
UIAlertAction *otherAction = [UIAlertActionactionWithTitle:@"OK"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction *action) {
NSLog(@"The \"Okay/Cancel\" alert's other action occured.");
}];
// Add the actions.
[alertController addAction:cancelAction];
[alertController addAction:otherAction];
[selfpresentViewController:alertController animated:YEScompletion:nil];
- iOS UIAlertController使用方法如何使用
- iOS UIAlertController UIAlertAction使用方法
- iOS 之UIAlertController的使用方法
- iOS UIAlertController 使用介绍
- 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
- AX 无法新建采购申请
- 查询某段时间耗时sql
- 如何给10^7个数据量的磁盘文件排序
- LODOP
- 69道Spring面试题和答案
- iOS UIAlertController使用方法如何使用
- 有趣的学习方式
- HDOJ/HDU 2567 寻梦(字符串简单处理)
- 【CodeForces】[75A]Life Without Zeros
- bash功能 快捷键
- Dart入门—函数与运算符
- Fully Qualified URL【完全限定URL】
- 【bzoj 1002】[FJOI2007]轮状病毒(乱搞+结论)
- 安卓菜鸟开发笔记(10-8)多媒体播放器api