As before matching the float parameters, you must put 6.0 in the float variable so that the LHS and RHS are the same for comparison:
float currentVersion = 6.0; if ([[[UIDevice currentDevice] systemVersion] floatValue] >= currentVersion) { NSLog(@"Running in IOS-6"); }
source share