Rotating screen in ios10

Just sometimes

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

Before using this normally, this should be correct: enter image description here

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 }
+4
source share

Source: https://habr.com/ru/post/1657370/


All Articles