iPhone SDK: Orientation (Landscape and Portrait views)

后端 未结 5 1983
醉梦人生
醉梦人生 2020-12-02 19:38

Okay, I\'ve got my normal app which is in portrait mode. I can force my app to go to landscape mode for a view (using navigationcontroller and viewcontroller) like this:

5条回答
  •  一整个雨季
    2020-12-02 20:10

    You need to edit your Info.plist file to add the UIInterfaceOrientation key with the appropriate value (UIInterfaceOrientationLandscapeRight or UIInterfaceOrientationLandscapeLeft).

提交回复
热议问题