对于仅限iPad的应用程序或通用应用程序,该"Requires full screen"选项告诉Xcode/iOS该应用程序是否支持iOS 9中引入的iPad多任务处理功能.但"Requires full screen"如果它是仅限iPhone的应用程序,则该选项也会出现.在这种情况下,这个选项有什么影响?
我创建了一个全新的,单视图iOS通用Swift应用程序.然后,我在应用程序设置中取消选中"Landscape Left"和"Landscape Right".我在我的iPhone上运行它,并且万岁,无论我如何旋转手机,它都保持纵向模式.然后我在我的iPad上运行它,它旋转到任何东西.甚至颠倒的肖像模式,首先没有启用?我是唯一体验过的吗?当我使用命令+箭头键旋转时,这也发生在iPad模拟器中.
我也尝试将以下内容添加到ViewController.swift中,并得到了相同的结果.
override func shouldAutorotate() -> Bool {
return false
}
override func supportedInterfaceOrientations() -> UIInterfaceOrientationMask {
return UIInterfaceOrientationMask.Portrait
}
Run Code Online (Sandbox Code Playgroud)
有没有办法在iPad上实际禁用旋转画像?
我将应用方向锁定为像这样的常规应用设置中的纵向

但是当我在ipad上运行我的应用程序时,它会旋转!?
那么我应该在哪里锁定方向?
为什么苹果将此功能添加到设置中,而它不起作用!?
更新:
我试图将这个viewController实现为所有viewController的通用.
import Foundation
import UIKit
class GeneralViewController: UIViewController {
override func viewDidAppear(animated: Bool) {
super.viewDidAppear(animated)
let value = UIInterfaceOrientation.Portrait.rawValue
UIDevice.currentDevice().setValue(value, forKey: "orientation")
}
override func supportedInterfaceOrientations() -> Int {
return Int(UIInterfaceOrientationMask.Portrait.rawValue)
}
override func preferredInterfaceOrientationForPresentation() -> UIInterfaceOrientation {
return UIInterfaceOrientation.Portrait
}
override func shouldAutorotate() -> Bool {
return false
}
}
Run Code Online (Sandbox Code Playgroud)
这张照片取自我的应用程序的主导航控制器.

还是没用!
这个东西怎么样?
我正在使用xamarin为Iphone和IPad开发一个通用应用程序,我正在尝试使用Xamarin Studio将应用程序部署到应用商店,同时部署我面临错误
ERROR ITMS-90474:"无效的捆绑包.iPad多任务支持需要这些方向:'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'.在捆绑"bundle_Name"中找到'UIInterfaceOrientationPortrait,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'
我花了很多时间在谷歌上,但我没有得到任何解决方案,如何使用Xamarin Studio解决它.
应用程序上下文:ios7,xcode 5,用钛appcelerator(sdk 3.1.3GA)编写,以前的版本兼容性如图所示(直接来自itunes connect)

完整的错误是
this bundle does not support one or more devices. supported by the revious app version. your app update must continue to support all devices previously supported. your declare supported device in Xcode with the Targeted Device Family build setting. Refer to QA1623 for additional information: https://developer.apple.com/library/ios/qa/qa1623/_index.html
现在.我在建筑物设置中检查了消息所说的内容,结果作为图像附加.


正如你所看到的,我应该覆盖所有苹果设备(iphone/ipad),但仍然给我同样的错误.谁知道为什么?
提前致谢
我正在使用Xcode 7将我的应用程序推送到应用程序商店,我的应用程序适用于iPhone和iPad.但它只支持肖像和风景.
这是我的错误:
如何仅以纵向和横向方式提交具有特定方向的应用程序.
有什么建议可以解决这个问题?