Let’s say I have a tab bar controller with 2 tabs.
The first tab has a navigation controller in it.
How do I, from the second tab, make the first tab’s navigation controller to pop to its first view?
I’ve tried:
for (UIViewController *vc in self.tabBarController.viewControllers) {
[vc.navigationController popToRootViewControllerAnimated:NO];
}
with no success.
Thanks.
1 Answer