I am currently testing the application on iPhone 3G with iOS 4.0.
I have the following code to check if this class is available.
if (NSClassFromString(@"CLGeocoder"))
The documentation states that CLGeocoder is available for iOs 5.0 and later. But the above code does not return nil.
Why? this class should not be available in iOS 4.0
source share