Skip to content

Instantly share code, notes, and snippets.

Created Dec 20, 2012
What would you like to do?
Support only portrait rotation for iPhone
- (BOOL)shouldAutorotate {
return IPAD ? YES : NO;
- (NSUInteger)supportedInterfaceOrientations {
return IPAD ? UIInterfaceOrientationMaskAll : UIInterfaceOrientationMaskPortrait;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment