Created
June 30, 2012 15:04
-
-
Save RandyMcMillan/3024131 to your computer and use it in GitHub Desktop.
IS_IPAD and statusBarOrientation support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#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