I got a tabbar application.
There is only 2 tabs in the tabbar. First tab is a NavigationController, there are two views in the NavigationController – root and detail views, second is a TableViewController. Second works perfect, but the the first doesn’t.
I start in first view (NavigationController). Then go in this NavigationView to the detail view. Then, for example, i go to the second tabbar view. Then go back to the first, but i dont see the root view, but the detail view.
How can i open the root view every time?
Use the UITabBarController delegate method
tabBarController:didSelectViewController:like this:Also make sure that delegate is setup properly, when creating your
UITabBarControllerand you change the code from my snippet to fit your controller names.