Skip to content

Instantly share code, notes, and snippets.

@jdelStrother
Created November 10, 2010 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jdelStrother/670771 to your computer and use it in GitHub Desktop.
Save jdelStrother/670771 to your computer and use it in GitHub Desktop.
NSString *requiredIOS = @"4.0";
NSString *currentIOS = [[UIDevice currentDevice] systemVersion];
// Blocks are kinda available but broken and unsupported on 3.2 - just test the version number to see if we have block support
ABBlocksSupported = (CFStringCompare((CFStringRef)currentIOS, (CFStringRef)requiredIOS, kCFCompareNumerically) != kCFCompareLessThan);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment