Tuesday 3 March 2020

Force to open a ViewController in particular orientation

Even for the app that only enabled Portrait for Device Orientation in General tab.

Make the viewController to be open in landscape override the following properties.


However, it changes the orientation of the presetingViewController. One solution to force the presetingViewController still in portrait is adding the following properties.





No comments:

Post a Comment