samedi 31 janvier 2015

I have an Unwind segue that does work programmatically but works tied to a button

I have a app project I am working on. I created an unwind segue in my main view as



@IBAction func unwindToHomeScreen(segue:UIStoryboardSegue) {
}


It works from another view from the cancel button


enter image description here


however in the same view when I call the segue



self.performSegueWithIdentifier("unwindToHomeScreen", sender: self)


The app crashes with



Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: 'Receiver (<TravelSave.AddVacationTableViewController: 0x7907f380>) has no segue with identifier 'unwindToHomeScreen''


Any suggestions?




Aucun commentaire:

Enregistrer un commentaire