how do you make an app ONLY support landscape?

前端 未结 5 1961
长发绾君心
长发绾君心 2020-12-31 07:47

how do you make an app ONLY support landscape? No portrait mode JUST landscape throughout the whole thing in xcode 3?

5条回答
  •  天涯浪人
    2020-12-31 08:04

    The accepted answer did not work for me. This did:

    In the properties file for your app (YOURAPPNAME-Info.plist), located in the "supporting files" group, there is an array called "Supported interface orientations". Remove the orientations you don't want from the array, and your app will be locked into the remaining orientation.

提交回复
热议问题