Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save RandyMcMillan/3024131 to your computer and use it in GitHub Desktop.
Save RandyMcMillan/3024131 to your computer and use it in GitHub Desktop.
IS_IPAD and statusBarOrientation support
//#define IS_IPAD (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad)
if ([[UIApplication sharedApplication] statusBarOrientation] < 3) {//portrait
if (IS_IPAD) {
} else {
} //end else
} else { //landscape
if (IS_IPAD) {
} else {
} //end else
}
if (IS_IPAD) {
} else { //end if
} //end else
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment