0

I'm trying to unwind a push segue when the user taps a UITableViewCell, but the main issue is how can I make an unwind segue to perform if I cant physically make it in interface builder. I have tried dragging from the Orange Viewcontroller square to the red Exit square and naming that segue and trying to call [self performSegueWithID: -----] etc. and it does nothing.

Thanks for any help you can give me!

chargerstriker
  • 486
  • 1
  • 5
  • 20
  • In which class have you implemented the `IBAction` method for the unwind segue? It needs to be in the destination class – Paulw11 Dec 10 '14 at 02:24
  • I dont have an IBAction method for the unwind segue because I dont have any button etc. to attach it to – chargerstriker Dec 10 '14 at 02:42
  • You don't need to attach it to a button. You need to define an IBAction method that accepts a UIStoryboardSegue in your destination class. Then when you drag to the exit box you will see this method as a selection. Once you have the unwind segue in place and named you can use performSegue to invoke it. See http://stackoverflow.com/questions/12561735/what-are-unwind-segues-for-and-how-do-you-use-them – Paulw11 Dec 10 '14 at 02:44
  • Also http://stackoverflow.com/questions/12509422/how-to-perform-unwind-segue-programmatically – Paulw11 Dec 10 '14 at 02:46

0 Answers0