Created
January 16, 2015 07:54
-
-
Save mutekinootoko/791d223cfb978fbb41fa to your computer and use it in GitHub Desktop.
find iphone screen size
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]; | |
CGFloat screenScale = [[UIScreen mainScreen] scale]; | |
CGSize screenSize = CGSizeMake(screenBounds.size.width * screenScale, screenBounds.size.height * screenScale); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment