alertDialog示例
来源:互联网 发布:数据输入 编辑:程序博客网 时间:2024/05/17 07:58
- UIAlertController* alert=[UIAlertController alertControllerWithTitle:@"提示"
- message:@"是否要重新开始?"
- preferredStyle:UIAlertControllerStyleAlert];
- UIAlertAction* defaultAction=[UIAlertAction actionWithTitle:@"是" style:UIAlertActionStyleDefault
- handler:^(UIAlertAction* action){
- self.timeLabel.text=@"5";
- }];
- UIAlertAction*Action1=[UIAlertAction actionWithTitle:@"取消"
- style:UIAlertActionStyleCancel
- handler:^(UIAlertAction*action){
- }];
- [alert addAction:defaultAction];
- [alert addAction:Action1];
- [self presentViewController:alert animated:YES completion:nil];
0 0
- alertDialog示例
- AlertDialog(对话框)示例
- AlertDialog(自定义对话框)示例
- 几种不同的alertDialog示例
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- AlertDialog
- 命令集合
- java web学习(进阶篇)二 Spring里的Bean
- Python Requests爬虫——获取一个收藏夹下所有答案的图片
- js区分大小写
- java web学习(进阶篇)三 Spring的依赖注入
- alertDialog示例
- week2——基本排序算法
- 中介者模式
- 面向对象开发设计 (1)
- Activity之间动画的切换
- 腾讯云代理查询方法渠道查询方法自己是谁的代理客户
- 25. Reverse Nodes in k-Group
- Android 学习(1)
- 读卡器项目总结(六)— 上位机通信协议