To check the iOS version you can use the following method:
- (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;
}
}