I have a basic navigation controller that integrates a tab bar controller. inside this controller of the tab bar there is another controller of the controller embedded in it. If I am in the controller of the child navigator, I can view it in the root view in one of the views, but it will only lead me to the root view of the CHILD navigation controller. Is there a way to get back to the first navigation controller?
If you are using a storyboard , you can use the Unwind segue method , which always works for me
+ "Pop to Main Screen" UIButton to Exit ( ) , "Main",
-(IBAction)customUnwind:(UIStoryboardSegue *)sender { NSLog(@"Unwind successful"); }
,
UITabBarController *tc = (UITabBarController *)self.navigationController.parentViewController; [tc.navigationController popToRootViewControllerAnimated:YES];