Created
January 20, 2012 10:18
-
-
Save jlcampana/1646570 to your computer and use it in GitHub Desktop.
Runtime check for iOS5
This file contains hidden or 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
+(BOOL)deviceIsRunningOS5 | |
{ | |
UIScreen *s = [UIScreen mainScreen]; | |
return [s respondsToSelector:@selector(brightness)]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment