Skip to content

Instantly share code, notes, and snippets.

@zachmayberry
Created July 30, 2015 16:36
Show Gist options
  • Save zachmayberry/67abd7e8e32dc812d8b6 to your computer and use it in GitHub Desktop.
Save zachmayberry/67abd7e8e32dc812d8b6 to your computer and use it in GitHub Desktop.
Screen height comparison iOS
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