1
我知道这是重复类型的问题,但我找不到解决这个问题。我在Info.plist文件中设置祭文变化停止旋转横屏模式下如何停止在iOS 10中的iPad的风景旋转Swift 3.0 Xcode 8.2
Supported interface orientations (iPad)
上述键值只保留肖像然后我检查在iPad上正常工作,但时我已经在应用程序商店上载时间它给错误如下
ERROR ITMS-90474: "Invalid Bundle. iPad Multitasking support requires these orientations:
'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. Found
'UIInterfaceOrientationPortrait' in bundle 'com.example.demo'."
ERROR ITMS-90474: "Invalid Bundle. iPad Multitasking support requires these orientations:
'UIInterfaceOrientationPortrait,UIInterfaceOrientationPortraitUpsideDown,UIInterfaceOrientationLandscapeLeft,UIInterfaceOrientationLandscapeRight'. Found 'UIInterfaceOrientationPortrait' in bundle 'com.example.demo'."
是多任务处理所需的支持横向模式我有写下面的代码重写旋转的方法,但它不是打电话的时候,屏幕旋转
extension UINavigationController {
public override func supportedInterfaceOrientations() -> Int {
return visibleViewController.supportedInterfaceOrientations()
}
public override func shouldAutorotate() -> Bool {
return visibleViewController.shouldAutorotate()
}
}
也尝试navigationController对象上设置的直接价值,然后提示错误:
read only property can not assign value
它的工作设置真正需要全屏...谢谢... @ InderKumarRathore –
感谢您有用的答案:) – haotang