locking orientation does not work on ipad ios 8 swift xcode 6.2

后端 未结 5 1544
广开言路
广开言路 2020-12-06 04:24

I locked the app orientation to portrait from the general app setting like this

\"portrait\"

but still

5条回答
  •  时光说笑
    2020-12-06 04:36

    You don't need extra code, I'm working on Xcode 7.0.1, I noticed that when I lock screen orientation to only portrait, it locks only in iPhones, to lock it in iPads also, you need to select iPad from Devices (instead of Universal) and check portrait and uncheck the others and then return Devices to Universal again, as I found that Universal only reflect in iPhones, it maybe some kind of bug in Xcode.

提交回复
热议问题