在操场上使用UIAlertController
我尝试在iPad的Playgrounds中创建一个对话框
let Alert = UIAlertController(title: "Eingabe", message: "Ihre Texteingabe:", preferredStyle: UIAlertController.Style.alert)
Alert.addAction(UIAlertAction(title: "Swift", style: UIAlertAction.Style.default, handler: { (_) in NSLog("klar!")}))
present(Alert, animated: true, completion: nil)
我在最后一行出现错误