I had two Table View Controllers and they are connected each other by "segues" in Storyboard. Then I've cut the "segues" and insert another controller. And connection now is not through "segues". To connect the views I'm using the code:
UIStoryboard *storyboard = self.storyboard;
OptionsViewController *options = [storyboard instantiateViewControllerWithIdentifier:@"OptionsViewController"]
[self.navigationController pushViewController:options animated:YES];
And now when I'm clicking a "Back" button in navigation bar my program crashes. How to fix it?
Console shows (After view loaded, before I've pressed the "Back" button.): "nested push animation can result in corrupted navigation bar" "Finishing up a navigation transition in an unexpected state. Navigation Bar subview tree might get corrupted."
After I've pressed the "Back" button: "terminating with uncaught exception of type NSException"
Navigation Controller is the initial controller in my storyboard, but the Views are not connected each other.
FIXED: I've just set the "animated:NO" at the end of my code.
optionsViewController
? - Bhumeshwer katre