Я пишу этот код в swift и Xcode 6
@IBAction func Alert(sender : UIButton) {
var alert : UIAlertView = UIAlertView(title: "Hey", message: "This is one Alert", delegate: nil, cancelButtonTitle: "Working!!")
alert.show()
}
Xcode не показывает ошибку в компиляции.
но в Simulator APP не работает и возвращает ошибку:
(lldb)
thread 1 EXC_BAD_ACCESS(code 1 address=0x20)