Just sometimes
After upgrading to swift3.0 and upgrading ios10, when I enter the desired horizontal screen 'viewController', sometimes this result appears:

Before using this normally, this should be correct:

I don’t know if this is a mistake, or I need to make some changes
this is the "swift" code:
override var shouldAutorotate : Bool {
return true }
override var supportedInterfaceOrientations : UIInterfaceOrientationMask {
return .landscape }
override var preferredInterfaceOrientationForPresentation : UIInterfaceOrientation {
return .landscapeLeft }
source
share