如何使用UIInterfaceOrientationLandscapeLeft初始化UIViewController?

时间:2009-11-29 18:02:29

标签: iphone uiviewcontroller

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

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

现在知道如何从UIInterfaceOrientationLandscapeLeft开始?

THX

1 个答案:

答案 0 :(得分:0)

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

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