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