开发者

How to monitor the tap event of items under tabbarcontroller->More?

I'm using a UITabbarControl开发者_Python百科ler, and added 10 UINavigationController into the subviews, so, some of the UINavigationControllers would be in "More" controller.

The problem is, delegate method tabBarController:shouldSelectViewController: doesn't apply to the UINavigationControllers in "More".

Now, I want to do something (show a modal view controller) when the items in "More" is tapped. What should I do?

Appreciate for any tips.


I got following code from other forum, but didn't get chance to give it a shot.

NSArray *views = [tabBarController.view subviews];
for(id v in views){
    if([v isKindOfClass:[UITabBar class]]){
        [(UITabBar *)v setHidden:YES];
    }
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜