swift3.0UIAlertController使用方法
来源:互联网 发布:vm数据区 编辑:程序博客网 时间:2024/06/05 07:25
let alertVC :UIAlertController = UIAlertController.init(title:"添加照片", message: "", preferredStyle: .actionSheet)
let cleanAction =UIAlertAction(title: "取消", style: UIAlertActionStyle.cancel,handler:nil)
let photoAction =UIAlertAction(title: "拍照", style: UIAlertActionStyle.default){ (action:UIAlertAction)in
//填写需要的响应方法
}
let choseAction =UIAlertAction(title: "从手机相册选择", style: UIAlertActionStyle.default){ (action:UIAlertAction)in
//填写需要的响应方法
}
alertVC.addAction(cleanAction)
alertVC.addAction(photoAction)
alertVC.addAction(choseAction)
self.present(alertVC, animated:true, completion: nil)
- swift3.0UIAlertController使用方法
- Swift3.0中代理的使用方法
- Swift3.0 中代理的使用方法
- iOS UIAlertController UIAlertAction使用方法
- Swift3.0中UIAlertView&UIAlertAction逐渐被抛弃,用UIAlertController代替
- [绍棠_Swift] Swift3.0中代理的使用方法
- iOS UIAlertController使用方法如何使用
- iOS 之UIAlertController的使用方法
- Swift3.0
- swift3.0
- Swift3.0
- iOS开发之UIAlertController新版的使用方法
- UIKit-UIAlertView,UIActionSheet,UIAlertController使用方法(完整版)
- uikit 中uialert 的使用方法UIAlertController
- UIAlertController使用方法、UIAlertAction使用方法(8.0起新控件)
- Swift中通知的使用方法(Swift3)
- iOS8.0-----UIAlertController
- UIAlertController
- Linux系统非ROOT用户80端口不能启动tomcat问题的变通办法——通过Iptables端口转发
- Java 集合—— LinkedList
- ASP.NET HTML颜色转换成Color值
- 杂乱之android的字体相关类Typeface
- Linux下删除・安装JDK
- swift3.0UIAlertController使用方法
- ubuntu16.04 修改配置文件 禁止系统自动更新
- linux挂载光盘
- Android asmack使用介绍
- Java多线程/并发12、多线程访问static变量
- WEB-INF下页面跳转
- #10 C. Digital Root (数论)
- 在安卓中使用AnimationSet类同时执行多种动画效果
- spring+springMVC声明事物管理配置