开发者

How to have one tabs orientation be all and the other tab be landscape?

I have a tabb开发者_如何学编程ar app and I won't one tabs orientation to be all and the other tabs orientation to be landscape. How can I do that?


Assign a delegate to UITabBarController, which implements this method:

- (void)tabBar:(UITabBar *)tabBar didSelectItem:(UITabBarItem *)item

Then check which UITabBarItem was selected and adjust the orientation accordingly.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜