NSString* strVersion = [[UIDevice currentDevice] systemVersion]; float version = [strVersion floatValue]; NSLog(@"version:%f", version);