Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sTinGe/3a328e637040b8bb5d41c4bdcd9db348 to your computer and use it in GitHub Desktop.
Save sTinGe/3a328e637040b8bb5d41c4bdcd9db348 to your computer and use it in GitHub Desktop.
- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
if ([_currentViewController class] == [PortraitViewController class]) {
return UIInterfaceOrientationMaskPortrait;
} else {
return UIInterfaceOrientationMaskLandscape;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment