Я хотел бы иметь кнопку «Next» выполнить переход, чтобы перейти к «Personalinformation» (а UIViewController)Выполните SEGUE с UIAlertAction
Но я получаю «сигнал SIGABRT» с кодом .. Как я могу почини это?
let alert = UIAlertController(title:"Confirmation", message: confirmationMessage, preferredStyle: UIAlertControllerStyle.Alert)
let confirmBtn : UIAlertAction = UIAlertAction(title: "Next", style: UIAlertActionStyle.Default, handler: {(action:UIAlertAction!)-> Void in
self.performSegueWithIdentifier("PersonalInformation", sender: self)
})
let cancelBtn : UIAlertAction = UIAlertAction(title: "Cancel", style: UIAlertActionStyle.Cancel, handler: nil)
alert.addAction(cancelBtn)
alert.addAction(confirmBtn)
self.presentViewController(alert, animated: true, completion: nil)
Где происходит SIGABRT? В 'performSegueWithIdentifier' или где-то еще? – JAL