【问题标题】:Application Lauch in Landscape mode while Simulator/Device is in Portrait mode in ios6应用程序在横向模式下启动,而模拟器/设备在 ios 6 中处于纵向模式
【发布时间】:2012-12-12 06:53:05
【问题描述】:

我的应用程序窗口有UITabBarController 作为RootViewController。然后UINavigationControllerTabBarController's RootViewController。然后另一个HomeViewControllerNavigationController's RootViewController

当我在Portrait 模式下启动我的应用程序时,HomeViewController 的UIView 出口以Landscape 模式显示。所有UIView 网点都有横向模式坐标。因为返回方向是Landscape

我发现了很多问答,博客。我应用了其他开发人员所说的任何内容,但没有成功。

此问题仅在 ios6 设备/iPhone 模拟器 6 中出现。

现在我正在开发模拟器并显示此问题。

请尽快帮助我。

问我,如果我不能解释我的问题。

提前谢谢你。

【问题讨论】:

    标签: objective-c ios6 orientation device-orientation


    【解决方案1】:

    在 iOS 6 中,该应用程序会从您的项目文件中查看您预定义的可能方向。检查它是否只列出景观,它也使用 shouldAutoRotate 方法,所以你可能也必须实现它。

    查看更多信息: Similar question

    【讨论】:

    • 我提到了这篇文章。我已经用 shouldAutoRotate 和其他必要的方法实现了 UINAvigationCONtroller 和 UITabBarController 的 Category 类。但还是没有结果。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多