开发者

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

开发者 https://www.devze.com 2023-02-15 20:52 出处:网络
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 implem

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

精彩评论

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