Created
July 30, 2015 16:36
-
-
Save zachmayberry/67abd7e8e32dc812d8b6 to your computer and use it in GitHub Desktop.
Screen height comparison iOS
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 screenBounds = [[UIScreen mainScreen] bounds]; | |
NSLog(@"%d", (int) roundf(screenBounds.size.height)); | |
if ((int) roundf(screenBounds.size.height) < 481) { | |
return 80.0f; | |
} else { | |
return 168.0f; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment