if (floor([[UIDevice currentDevice].systemVersion floatValue]) >= 7) { NSLog(@">=7"); }else{ NSLog(@"<7"); }