ios/swift基础组件代码

来源:互联网 发布:uuu网络加速官方下载 编辑:程序博客网 时间:2024/06/06 19:31

1.确认弹出

        let alertController =            UIAlertController(title: "被选中的索引为",                              message: message, preferredStyle: .alert)        let okAction = UIAlertAction(title: "OK", style: .cancel, handler: nil)        alertController.addAction(okAction)        self.present(alertController, animated: true, completion: nil)

原创粉丝点击