iOS 9 弹窗UIalertController
2016-04-05 16:22
441 查看
UIAlertController * alert = [UIAlertController alertControllerWithTitle:@"删除确认" message:nil preferredStyle:UIAlertControllerStyleAlert];
UIAlertAction * decideaction = [UIAlertAction actionWithTitle:@"删除" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//此处写点击事件
}];
UIAlertAction * cancelaction = [UIAlertAction actionWithTitle:@"放弃" style:UIAlertActionStyleDefault handler:nil];
[alert addAction:decideaction];
[alert addAction:cancelaction];
UIAlertAction * decideaction = [UIAlertAction actionWithTitle:@"删除" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
//此处写点击事件
}];
UIAlertAction * cancelaction = [UIAlertAction actionWithTitle:@"放弃" style:UIAlertActionStyleDefault handler:nil];
[alert addAction:decideaction];
[alert addAction:cancelaction];
相关文章推荐
- 2016.04.03,英语,《Vocabulary Builder》Unit 09
- 如何让按钮UIButton的文字左对齐?
- ServletRequest接口的主要方法
- easyui combobox 值怎样获取
- /proc/cpuinfo保存机器的CPU架构相关信息
- UIControl 详细解释
- UIDynamic
- EasyUI使用tree方法生成树形结构加载两次的问题
- ubuntu 12.04 编译uImage遇到的问题与解决方法
- django之异常错误3(Student matching query does not exist.)
- uestc886方老师金币堆【区间dp】
- iOS-Bug收集:You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated
- LeetCode(23)-Implement Queue using Stacks(栈实现队列)
- LeetCode(23)-Implement Queue using Stacks
- LeetCode(23)-Implement Queue using Stacks(栈实现队列)
- 在magento的eav模型中如何在更新记录时只在value表的原值上更新
- 微软的COM中GUID和UUID、CLSID、IID
- CodeForces 652E Pursuit For Artifacts 边双连通分量
- 深入理解ServletRequest与ServletResponse
- DDMS android 开发工具-----dump View Hierarchy for UI automator