In the iPhone SDK 3.2, [CLLocation getDistanceFrom:]
was renamed to [CLLocation distanceFromLocation:]
. My project is compiled with 3.2 as the Base SDK and a "Deployment Target" of 3.0, meaning frameworks only available in 3.2 are weak linked so my app can still run on 3.0.
If I change my calls to use the new name distanceFromLocation:
, what will happen on devices running 3.0 or 3.1? I assume that the method call will fail and 0.0
will be returned (as Cocoa returns the default for unrecognized selectors).
If my assumption is correct this means I have to live with the compiler warnings for now, until I no longer want to target 3.0.