Skip to content

Instantly share code, notes, and snippets.

@darkseed
Forked from alexleutgoeb/gist:877866
Created March 20, 2011 10:25
Show Gist options
  • Save darkseed/878255 to your computer and use it in GitHub Desktop.
Save darkseed/878255 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);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment