Skip to content

Instantly share code, notes, and snippets.

@mluton
Created October 17, 2012 22:12
Show Gist options
  • Select an option

  • Save mluton/3908659 to your computer and use it in GitHub Desktop.

Select an option

Save mluton/3908659 to your computer and use it in GitHub Desktop.
Detecting Device Orientation: 2
if (UIDeviceOrientationIsPortrait([[UIApplication sharedApplication] statusBarOrientation])) {
// do portrait stuff
}
else {
// do landscape stuff
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment