I use it to check iOS version, but it doesn\'t work:
#ifndef kCFCoreFoundationVersionNumber_iPhoneOS_5_0 #define kCFCoreFoundationVersionNumber_iPhoneOS_5_0
Define this method:
+(BOOL)iOS_5 { NSString *osVersion = @"5.0"; NSString *currOsVersion = [[UIDevice currentDevice] systemVersion]; return [currOsVersion compare:osVersion options:NSNumericSearch] == NSOrderedAscending; }
Then define the macro as that method.