I have created an application for iPhone, using swift, that is composed from many views embedded in a navigation controller. I would like to lock the main v
In iOS8, if you want to lock some especific ViewController, create an extension of UINavigationController (in the case you use it):
extension UINavigationController { public override func shouldAutorotate() -> Bool { if visibleViewController is YourViewController { return false } return true }}