You can do this by adding code to the delegate of your application for my answer here .
Quick code:
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> Int { if UIDevice.currentDevice().userInterfaceIdiom == .Phone { return Int(UIInterfaceOrientationMask.Portrait.rawValue) } else { return Int(UIInterfaceOrientationMask.LandscapeLeft.rawValue | UIInterfaceOrientationMask.LandscapeRight.rawValue) } }
source share