开发者

tabbar rotating

开发者 https://www.devze.com 2023-01-13 07:21 出处:网络
is it possible to rotate Tabba开发者_运维百科r with allitems(tabbar controller) as it is in landscape when particular touch event is happening in one view (portrait) without shouldAutorotateToInterfac

is it possible to rotate Tabba开发者_运维百科r with all items(tabbar controller) as it is in landscape when particular touch event is happening in one view (portrait) without shouldAutorotateToInterfaceOrientation?


It is possible, but you need to call

[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationPortrait];

Which is an undocumented api, and it will cause the appstore to regect your app.

FYI, I've created a nifty solution to rotating tabbar controllers, you can read about it here: BAGTabbarController

0

精彩评论

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

关注公众号