How to disable portrait orientation in swift 3?
 xcode 8 and swift 3
How to disable portrait orientation in swift 3?
 xcode 8 and swift 3
 
    
    Try this :
Programatically
Add this in appdelegate
func application(_ application: UIApplication, supportedInterfaceOrientationsFor window: UIWindow?) -> UIInterfaceOrientationMask {
        return UIInterfaceOrientationMask(rawValue: UIInterfaceOrientationMask.landscape.rawValue)
    }
 
    
    There is an option in the general tab of your application that will allow you to disable/enable different orientations.
