UIInterfaceOrientation

In this short Swift code example, you will learn how to disable rotation of the UIViewController which is embedded into UINavigationController. We will need to override the shouldAutorotate function and return a value of false, Add to current UIViewController a UINavigationController extension. Disable Rotation of UIViewController Complete Code Example in Swift Below is a very simple…

Read More Disable Rotation of UIViewController Embedded Into UINavigationController