开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜