For example, in iOS 7 there is a new class that does not exist in iOS 6. I want to use this new class. My application should remain compatible with iOS 6. Therefore, I read in some places that you can now do this:
if ([NSURLSessionConfiguration class]) { // only in iOS 7 } else { // do it iOS6 way }
Is it safe to do this in any version of iOS 6 or should we use NSClassFromString ?
ios iphone xcode ios7
openfrog
source share