【问题标题】:How to init UIViewController with UIInterfaceOrientationLandscapeLeft?如何用 UIInterfaceOrientationLandscapeLeft 初始化 UIViewController?
【发布时间】:2009-11-29 18:02:28
【问题描述】:

我有一个继承自 UIViewController 的 WebViewController,并且还使用了 shouldAutorotateToInterfaceOrientation。

到目前为止一切都很好,但是当我切换到 WebViewController 时,它会以纵向模式启动。只有当我转动 iPhone 时,它​​才会开始旋转。

现在知道如何从 UIInterfaceOrientationLandscapeLeft 开始了吗?

谢谢

【问题讨论】:

    标签: iphone uiviewcontroller


    【解决方案1】:

    请查看this tutorial - 它应该可以解决您的问题。

    基本上,您必须在 Info.plist 文件中添加一个值为 UIInterfaceOrientationLandscapeLeft 的键 UIInterfaceOrientation

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-09-18
      • 1970-01-01
      • 2014-12-28
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多