开发者

UITabbar orientation problem

开发者 https://www.devze.com 2023-01-26 19:58 出处:网络
I am working on orientation work on uitabbar application. I am using 5 tabbar item in tabbar. I want only 4 tab bar item to be rotated in both Landscape and potrait. but the issue is when i put \"retu

I am working on orientation work on uitabbar application. I am using 5 tabbar item in tabbar. I want only 4 tab bar item to be rotated in both Landscape and potrait. but the issue is when i put "return no" to shouldAutorotateToInterfaceOrientation in non rotating tabbar item, all tab bar are not working. can anybody please tell me what i went wrong?

开发者_开发问答

Thanks in advance.

Regards, sathish


By default, a UITabBarController will only return YES to the shouldAutorotateToInterfaceOrientation: message if every one of its child controllers returns YES to that message. The behavior you're seeing is the expected behavior.

Check out the fourth list item on this page.

0

精彩评论

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