本文介绍了iPad 多任务支持需要这些方向的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将我的通用 iOS 9 应用程序提交给 Apple(使用 Xcode 7 GM 构建),但我在 iTunes Connect 中收到此捆绑包的错误消息,就在我选择提交审核时:

I'm trying to submit my universal iOS 9 apps to Apple (built with Xcode 7 GM) but I receive this error message for the bundle in iTunes Connect, just when I select Submit for Review:

无效的捆绑包.iPad 多任务支持需要这些方向:'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'.在包com.bitscoffee.PhotoMarks.iOS"中找到UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown".

我的应用支持 Portrait 和 PortraitUpsideDown 方向,但不支持其他两个.

My app has support for Portrait and PortraitUpsideDown orientations but not for the other two.

那么是否有针对此强加要求的解决方法,或者所有 iOS 9 iPad 应用程序都必须具有所有四个方向?

So is there a workaround for this imposed requirement, or all iOS 9 iPad apps have to have all four orientations?

推荐答案

iPad 多任务支持需要所有方向,但您的应用不需要,因此您需要选择退出它,只需添加 UIRequiresFullScreen键到您的 Xcode 项目的 Info.plist 文件并应用布尔值 YES.

iPad Multitasking support requires all the orientations but your app does not, so you need to opt out of it, just add the UIRequiresFullScreen key to your Xcode project’s Info.plist file and apply the Boolean value YES.

这篇关于iPad 多任务支持需要这些方向的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-15 12:29