Mixed Orientations

Is it possible to program specific screens to only do landscape OR portrait mode, in the same application on iPhone. Any insight would be appreciated.

Answered by Claude31 in 710451022

Yes it is.

For instance, to have portrait only, include this in the VC code:

     override open var supportedInterfaceOrientations : UIInterfaceOrientationMask     {
          return UIInterfaceOrientationMask.portrait
     }
Accepted Answer

Yes it is.

For instance, to have portrait only, include this in the VC code:

     override open var supportedInterfaceOrientations : UIInterfaceOrientationMask     {
          return UIInterfaceOrientationMask.portrait
     }
Mixed Orientations
 
 
Q