【发布时间】:2014-06-11 14:00:11
【问题描述】:
我正在尝试在 iOS 7 中使用 Swift 中的 UIAlertController,当出现警报时,我不断收到以下错误:EXC_BAD_ACCESS (code = 1, address = 0x10)
这是警报的代码。
var alert:UIAlertController = UIAlertController(title: "Ooops", message: "Please Fill In Everything", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "OK", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
【问题讨论】:
标签: ios swift uialertcontroller