Switching tabbar without refreshing UIViewController
In my application 5 tabs are there. In each tab I am pushing another UIViewController for RootViewController. Now If I switch tab开发者_JS百科s. It will show RootViewController itself. When Switching between tab bars I dont want go to show RootViewController. Can you tell me how can I do this.
Thanks
I don't know exactly what it means that "Switching between tab bars".
I think it helps you.
- (BOOL)tabBarController:(UITabBarController *)tabBarController shouldSelectViewController:(UIViewController *)viewController
if return NO, tabBarController doesn't move tab itself. Default: retun YES
If return YES, tabBarController calls
- (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController
精彩评论