Ste*_*Fox 5 ios swift uialertcontroller
我试图在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)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1415 次 |
| 最近记录: |