Skip to content

Instantly share code, notes, and snippets.

@alexleutgoeb
Created March 19, 2011 22:27
Show Gist options
  • Save alexleutgoeb/877866 to your computer and use it in GitHub Desktop.
Save alexleutgoeb/877866 to your computer and use it in GitHub Desktop.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
if (self.tabBarController.selectedViewController == self.navigationController)
return NO;
else
return (interfaceOrientation != UIInterfaceOrientationPortraitUpsideDown);
}
@alexleutgoeb
Copy link
Author

Hab das auch mal probiert, jedoch musste ich dann view + status bar manuell drehen, und das war richtig böse. Das ist dann der Fall den Peter meinte: don't fight the framework. ;)

Evtl kannst du "einfach" das Interface nochmal überdenken?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment