0

I have the following view controllers set up: UITabBarController -> UINagivationController -> UIViewController1 -> UIViewController2

And I'm trying to unwind from UIViewController2 to UIViewController1.

I have the following code in UIViewController1

- (IBAction)unwindToVC1:(UIStoryboardSegue *)unwindSegue {
}

To set up the link in the Storyboard, I went to UIViewController2, and control-dragged from a button I created to the exit symbol at the top, and selected the method unwindtoVC1: from the list presented. Then I launch the app and click the button but nothing happens. What am I doing wrong?

Here is what my storyboard looks like Storyboard

EDIT: I found the error. It was an oversight on my part in not assigning the correct custom class to UIViewController1.

Rennir
  • 31
  • 3

0 Answers0