Skip to content

Instantly share code, notes, and snippets.

@olxios
Created June 20, 2016 18:55
Show Gist options
  • Save olxios/72e884cd0785a2d8e12055ce3fb0d1fa to your computer and use it in GitHub Desktop.
Save olxios/72e884cd0785a2d8e12055ce3fb0d1fa to your computer and use it in GitHub Desktop.
func application(application: UIApplication, supportedInterfaceOrientationsForWindow window: UIWindow?) -> UIInterfaceOrientationMask {
if self.window?.rootViewController?.presentedViewController is SecondViewController {
return UIInterfaceOrientationMask.All;
} else {
return UIInterfaceOrientationMask.Portrait;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment