Skip to content

Instantly share code, notes, and snippets.

@sumardi
Created February 1, 2011 10:45
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 sumardi/805694 to your computer and use it in GitHub Desktop.
Save sumardi/805694 to your computer and use it in GitHub Desktop.
iPhoneDev - Change views to landspace mode
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Return YES for supported orientations.
return (interfaceOrientation == UIInterfaceOrientationLandscapeLeft);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment