Created
June 20, 2016 18:55
-
-
Save olxios/72e884cd0785a2d8e12055ce3fb0d1fa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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