iOS6自动旋转。 TabBar->导航 - >模态 [英] iOS6 autorotation. TabBar->Navigation->Modal

查看:109
本文介绍了iOS6自动旋转。 TabBar->导航 - >模态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我几乎已经阅读了关于新iOS6自动旋转的所有答案,但我仍然无法做到我想要的。

I've read almost every answer about the new iOS6 autorotation stuff but I still can't manage to do what I want.

我有一个tabBar。其中一个选项卡是NavigationView。当你把iPhone变成横向时,会加载一个modalViewController。

I have a tabBar. One of the tabs is a NavigationView. When you turn the iPhone to landscape, a modalViewController is loaded.

在iOS5上一切正常但我无法在iOS6上获得旋转的模态视图。我已经尝试了子类化导航控制器,子类化tabbar控制器和两者!没办法。

Everything works ok on iOS5 but I can't get the modal view to rotate on iOS6. I've tried subclassing the navigation controller, subclassing the tabbar controller and both!. No way.

我现在很困惑。哪一个是负责旋转模态视图? tabbarController?,navigationViewController ?,呈现它的viewController?。

I'm now very confused. Which one is the responsible of rotating the modalview?. The tabbarController?, the navigationViewController?, the viewController who presented it?.

我很感激任何帮助。

谢谢

推荐答案

在iOS6中,您必须更改应用程序的旋转。
application.statusBarOrientation = UIInterfaceOrientationLandscapeLeft;

In iOS6 you have to change the rotation of the application. application.statusBarOrientation = UIInterfaceOrientationLandscapeLeft;

这篇关于iOS6自动旋转。 TabBar->导航 - >模态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆