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.

Accepted Reply

Yes it is.

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

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

Replies

Yes it is.

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

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