I am trying to use a UIAlertController in Swift, with iOS 7, and I keep getting the following error when the alert should appear: EXC_BAD_ACCESS (code = 1, address = 0x10)
Here is the code for the alert.
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
is available only since iOS 8.0. You should still use UIAlertView
instead
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With