0

I'm trying to enable a segue such that if a user presses cancel on the sign up page, it takes them back to the login page.

On my login view controller I have:

- (IBAction)unwindToLogIn:(UIStoryboardSegue *)segue {
}

However, when I press the cancel button it doesn't work. I've done the connection in Interface Builder that connects the cancel button the green exit thingy in the view. It still isn't working- any idea of what's going on?

vsingal5
  • 304
  • 5
  • 18
  • What is your view controller hierarchy? How did the user get from login page to sign up page in the first place? – rdelmar Sep 05 '14 at 05:05
  • This [link](http://stackoverflow.com/questions/12561735/what-are-unwind-segues-for-and-how-do-you-use-them) might help you out. – nikhil84 Sep 05 '14 at 07:50

1 Answers1

0

Try adding an identifier to your segue in IB then just do

- (IBAction)unwindToLogin{
 [self performSegueWithIdentifier:@"segueIdentifier" sender:self];
}
artud2000
  • 544
  • 4
  • 9