[英]UIAlertController error when testing using iPhone device (Thread 1: EXC_BAD_ACCESS) iOs SWIFT
[英]UIAlertController EXC_BAD_ACCESS error - Swift
我試圖在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)
UIAlertController
僅在iOS 8.0之后可用。 你應該仍然使用UIAlertView
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.