To check the iOS version you can use the following method:
1 2 3 4 5 6 7 8 9 10 11 12 |
- (BOOL)iOSVersion5 { NSLog(@"System Version is %@", \ [[UIDevice currentDevice] systemVersion]); NSString *ver = [[UIDevice currentDevice] systemVersion]; float ver_float = [ver floatValue]; if (ver_float < 5.0) { return NO; } else { return YES; } } |