I have an UITabbarcontroller with 4 tabbar items.Each tabbar items have UINavigationController.Actually Tabbar loads the last view controller from stack while i switch next tabbar item.
I want to load the first view controller from the stack whenever i switch between the tabbar item.
How can i achieve this?
You want it to go back to the root view controller within each tab, rather than remembering where in the hierarchy the user was, whenever you switch tabs?
You need to call
popToRootViewControllerAnimated:NOon the navigation controller as you switch tabs (i.e. in a tab bar controller delegate method).