tabBarController popToRooTViewControler
- by Jacob
Every time a user changes a tab, for the selected tab I want to push it to its top level controller. I have implemented the delegate method for the Tabbarcontroller like this:
- (void) tabBarControler:(UITabBarController )tabBarController didSelectViewController:(UIViewController)viewController{
[[self navigationController] popToRootViewController Animated:NO];
}
This does nto seem to work but I can confirm the method is being called every time I change tabs