How to lock the orientation of a specific View Controller to Portrait mode?
I hope you are well!
I am working on a Swift 2 app using Xcode FOR iOS 9! and I would like the whole app to rotate on both directions expect a particular view controller that I want to be locked to portrait even when the user rotates. I tried for hours and looked a lot online and nothing worked. Any help? UPDATE: I tried the two methods below but it doesn't work for iOS 9 :( Please help