tabBarController popToRooTViewControler
Posted
by Jacob
on Stack Overflow
See other posts from Stack Overflow
or by Jacob
Published on 2010-04-04T01:35:24Z
Indexed on
2010/04/04
1:43 UTC
Read the original article
Hit count: 436
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
© Stack Overflow or respective owner