Alter或ActionSheet
来源:互联网 发布:淘宝企业店铺能撤销吗 编辑:程序博客网 时间:2024/06/01 07:25
xcode 提示只前用的alter过期了,之后自己在系统原生的方法上进行封装了一下。
使用方法很简单 直接上代码,希望能帮到大家谢谢!
- (void)viewDidLoad { [super viewDidLoad]; __weak ViewController *ws = self; [SLAlertVC showVC:self message:@"第一个"]; [SLAlertVC showVC:self message:@"第二个" confirmBtn:@"确定" handle_confirm:^(UIAlertAction *action) { ws.view.backgroundColor = [UIColor redColor]; }]; [SLAlertVC showVC:self preferredStyle:UIAlertControllerStyleActionSheet message:@"测试" confirmBtn:@"确定" cancelBtn:@"取消" handle_confirm:^(UIAlertAction *action) { [SLAlertVC showVC:ws message:@"第三个测试,确定"]; } handle_cancel:^(UIAlertAction *action) { [SLAlertVC showVC:ws message:@"第三个测试,取消"]; }]; [SLAlertVC showVC:self preferredStyle:(UIAlertControllerStyleActionSheet) message:@"第四个" confirmBtn:@"扫一扫" cancelBtn:@"取消" handle_confirm:^(UIAlertAction *action) { [ws.navigationController pushViewController:[ScanCodeVC alloc] animated:YES]; } handle_cancel:^(UIAlertAction *action) { [SLAlertVC showVC:ws message:@"第四个测试,取消"]; }];}
完整的工程在去https://github.com/Victory886/textDemo
下载
git 里也有一个二维码扫描是跟这一起的。
0 0
- Alter或ActionSheet
- ActionSheet
- ActionSheet
- ORA-02243: ALTER INDEX 或 ALTER MATERIALIZED VIEW 选项无效
- alter
- alter
- alter
- alter
- alter
- alter
- ActionSheet 使用
- ActionSheet + Picker
- AlertView&ActionSheet
- actionsheet使用
- 仿微信ActionSheet
- IOS_ImagePicker还有ActionSheet
- [ios]自定义的ActionSheet
- iphone之ActionSheet介绍
- ImageView和ImageButton
- Android中Bitmap,byte[],Drawable相互转化
- javaWeb开发中关于eclipse等ide重新部署或重启项目等原因造成上传文件丢失问题解决方案
- myeclipse2014黑色主题风格设置
- 51nod 1417 天堂里的游戏
- Alter或ActionSheet
- 【Linux】ubuntu下kafka集群环境搭建,kafka命令
- QTimer类参考
- Javascript 基本二
- Frameworks
- HLS草案与版本对应关系
- visio2013+office2013同时安装步骤
- HC-05蓝牙无线模块设置
- Linux环境下crontab定时执行Python脚本(远程)