📌  相关文章
📜  IOS 以编程方式创建 UIAlertViewController - Swift 代码示例

📅  最后修改于: 2022-03-11 15:01:02.449000             🧑  作者: Mango

代码示例1
let alertController = UIAlertController(title: "Some Error",
                                               message: "Pleas confirm?",
                                               preferredStyle: .alert)

  let defaultAction = UIAlertAction(title: "OK", style: .default, handler: nil)
            alertController.addAction(defaultAction)

  self?.present(alertController, animated: true, completion: nil)