ios - iPad 多任务支持需要这些方向

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

Invalid Bundle. iPad Multitasking support requires these orientations: 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. Found 'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown' in bundle 'com.bitscoffee.PhotoMarks.iOS'.

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

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

最佳答案

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

https://stackoverflow.com/questions/32559724/

相关文章:

ios - 创建模糊叠加 View

objective-c - objectForKey 和 valueForKey 的区别?

ios - Objective-C ARC : strong vs retain and weak

iphone - 按下时 UILongPressGestureRecognizer 被调用两次

objective-c - 如何纯粹用 C 编写 iOS 应用程序

objective-c - 如何使用 NSTimer?

iphone - 如何在 UIView 下绘制阴影?

objective-c - 在 Objective-C 中为类定义私有(private)方法的最佳方

objective-c - 如何在 Objective-C 中反转 NSArray?

iphone - 您在编写 Objective-C 和 Cocoa 时使用了哪些最佳实践?