Created
January 2, 2014 08:25
-
-
Save koromiko/8216397 to your computer and use it in GitHub Desktop.
bound frame size for ipad or landscape view
This file contains 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
CGRect windowBounds; | |
if (UIInterfaceOrientationIsLandscape([[UIDevice currentDevice] orientation])) { | |
windowBounds = CGRectMake( 0.0f, 0.0f, [[UIScreen mainScreen]bounds].size.height, [UIScreen mainScreen].bounds.size.width ); | |
}else{ | |
windowBounds = CGRectMake( 0.0f, 0.0f, [[UIScreen mainScreen]bounds].size.width, [UIScreen mainScreen].bounds.size.height ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment