Search code examples
uinavigationcontrolleruisplitviewcontrolleruistoryboarduistoryboardsegue

Segue from UINavigationController back to Root Controller?


Currently I have a Navigation Controller in a separate storyboard that utilities an exit button. This exit button SHOULD go back to the rootViewController(thats in mainstoryboard) Which is an iSplitViewController...

I can't figure out the correct Segue commands to make this work


Solution

  • Link the button to an IBAction method that calls:

    [self.navigationController popToRootViewControllerAnimated:YES];