Created
November 19, 2011 05:39
-
-
Save naotokui/1378493 to your computer and use it in GitHub Desktop.
Check if Retina Display is available or not
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
// Check if Retina Display is available or not | |
if ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] == YES && [[UIScreen mainScreen] scale] == 2.00){ | |
hasRetina = YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment