UIAlertController EXC_BAD_ACCESS错误 - Swift

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)

B.S*_*.S. 20

UIAlertController仅在iOS 8.0之后可用.还是应该做UIAlertView,而不是