Unable to lock orientation on iPad Air 2

后端 未结 3 1646
攒了一身酷
攒了一身酷 2020-12-16 14:27

The iOS application I am working on has a view that needs to be locked in landscape orientation. Up to this point, that was accomplished by using the shouldAutorotate

3条回答
  •  清歌不尽
    2020-12-16 14:37

    The 'Requires full screen' setting can be enabled from 'General' of the target settings.

    With this enabled, the orientation code will now run. As mentioned by ackerman91, you can also set UIRequiresFullScreen boolean to YES in the application info.plist or in the target 'Info' tab.

提交回复
热议问题