I have a UITabBarController with five views, one of which has a UINavigationController within it.
How can I insure that anytime the tab that contains the UINavigationController is selected that it goes to the top view in the UINavigationController?
There is no
UITabViewControllerclass. I assume you meanUITabBarController.Set a delegate for your
UITabBarController. Give the delegate a reference to the navigation controller. For example, maybe you will use your application delegate as the tab bar controller’s delegate:Make sure you hook up the property, either in your nib or in code.
Then, in the delegate, override the
tabBarController:didSelectViewController:method: