Swift 3.0 UIAlertController的使用

来源:互联网 发布:淘宝神经猫 编辑:程序博客网 时间:2024/05/17 22:48

在Swift 3.0 UIAlertController的使用, 代码如下:

let alert = UIAlertController.init(title: "提示", message: "我是弹框..", preferredStyle: .alert)alert.addAction(UIAlertAction.init(title: "取消", style: .cancel, handler: nil))self.present(alert, animated: true) {            }
0 1
原创粉丝点击