"Check if we are running iOS 4+"

Wed 01 December 2010

+(BOOL)isOS4{

NSComparisonResult order = [[UIDevice currentDevice].systemVersion compare: @"4.0" options: NSNumericSearch];

if (order == NSOrderedSame || order == NSOrderedDescending) {

return YES;

} else {

return NO;

}

}