Skip to content

Instantly share code, notes, and snippets.

@oliverbarreto
Created May 4, 2013 18:53
Show Gist options
  • Save oliverbarreto/5518368 to your computer and use it in GitHub Desktop.
Save oliverbarreto/5518368 to your computer and use it in GitHub Desktop.
Objective-C: UIDevice Screen Size
CGRect screenSizeRect = [[UIScreen mainScreen] bounds];
CGRect screenSizeRect = [[UIScreen mainScreen] applicationFrame];
CGFloat screenWidth = screenSizeRect.size.width;
CGFloat screenHeight = screenSizeRect.size.height;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment