故事板转换将设备转为纵向

时间:2012-07-10 13:59:37

标签: user-interface rotation orientation modalviewcontroller uiviewanimationtransition

在我的应用中,故事板控制了2个视图。主视图和翻转视图都是横向视图,但是当我使用模态功能在它之间进行过渡时,我的翻转视图变为肖像我使用代码

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { return UIInterfaceOrientationIsLandscape(interfaceOrientation); }

在lanscape中显示应用程序,但它变成了肖像!我的plist和目标摘要都说lanscape。

所有帮助将不胜感激!

0 个答案:

没有答案