UIAlertController的使用二
来源:互联网 发布:淘宝网付款方式 编辑:程序博客网 时间:2024/05/22 04:54
UIAlertController *actionSheetController = [UIAlertController alertControllerWithTitle:@"action选项" message:nil preferredStyle:UIAlertControllerStyleActionSheet];
UIAlertAction *action0 = [UIAlertActionactionWithTitle:@"选项一"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction * action) {
[self customMethod1];
}];
[actionSheetController addAction:action0];
UIAlertAction *action = [UIAlertActionactionWithTitle:@"选项二"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction * action) {
[self <span style="font-family: Arial, Helvetica, sans-serif;">customMethod2</span>];
}];
UIAlertAction *action1 = [UIAlertActionactionWithTitle:@"选项三"style:UIAlertActionStyleDefaulthandler:^(UIAlertAction * action) {
[self customMethod3];
}];
UIAlertAction *actionCancel = [UIAlertAction actionWithTitle:@"取消" style:UIAlertActionStyleCancel handler:^(UIAlertAction * action) {}];
[actionSheetController addAction:action];
[actionSheetController addAction:action1];
[actionSheetController addAction:actionCancel];
[actionSheetController.viewsetTintColor:[UIColorgreenColor]];
[selfpresentViewController:actionSheetControlleranimated:YEScompletion:nil];
- UIAlertController的使用二
- UIAlertController的使用(Swift)
- UIAlertController的使用示例
- UIAlertController的使用
- UIAlertController的使用
- 关于UIAlertController的使用
- UIAlertController的使用
- UIAlertController 的使用
- UIAlertController 的使用
- UIAlertController的使用
- swift 的 UIAlertController使用
- UIAlertController的使用
- UIAlertController的使用
- UIAlertController的使用
- UIAlertController的使用
- UIAlertController 的使用
- UIAlertController的简单使用
- UIAlertController的使用
- 杭电1087
- 客户端升级系统升级策略
- IOS--UI--LessonDataBase
- Oracle 10g PL/SQL
- 归并排序
- UIAlertController的使用二
- POJ 1556 The Doors(计算几何+Floyd)
- HDU 1114 Piggy-Bank 存钱罐
- hdu 2012 素数判定
- WebRTC开源项目一览
- 使得EditText失去焦点
- Android异步网络请求
- 树-堆结构练习——合并果子之哈夫曼树 SDUT
- 自定义组合控件