How to make an ipad app only portrait?

前端 未结 2 1309
不思量自难忘°
不思量自难忘° 2021-01-02 16:56

I am making an ipad app, and i set the the app to only portrait, but it still works in landscape? Why is this happening only on an ipad? How do i fix this?

Note: if

2条回答
  •  隐瞒了意图╮
    2021-01-02 17:42

    In xcode select your project. Go to Targets -> General, scroll down and you can select the Orientation as portrait only.

    You can also make change to info.plist file to select proper orientations for Supported interface orientations (iPad)

提交回复
热议问题