5

iOS 7 を使用して Swift で UIAlertController を使用しようとしていますが、アラートが表示されるときに次のエラーが発生し続けます: EXC_BAD_ACCESS (コード = 1、アドレス = 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)
4

1 に答える 1