What is the impact of the “Requires full screen” option in Xcode for an iPhone-only app?

感情迁移 提交于 2019-11-27 14:18:25

问题


For an iPad-only app or a universal app, the "Requires full screen" option tells Xcode/iOS whether the app supports iPad multitasking feature introduced in iOS 9. But the "Requires full screen" option is also present if it's an iPhone-only app. In this case, what is the impact of this option?


回答1:


There is no impact at all. Apple engineers thinks that its not required to hide, or may be Plus phones will get landscape slide over in later iOS versions :)

From the documentation:

To opt out of being eligible to participate in Slide Over and Split View, add the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES.




回答2:


Normally, you would need to support both portrait and landscape orientation in your app.If your app is landscape only or portrait only, then the app validation fails with:

warning: All interface orientations must be supported unless the app requires full screen.

And as KingofBliss noted, setting this to YES will also stop your app from running in a split view.

It is a useful setting for games that run full screen in landscape only.



来源:https://stackoverflow.com/questions/34608826/what-is-the-impact-of-the-requires-full-screen-option-in-xcode-for-an-iphone-o

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!