float distance = [currentLocation getDistanceFrom:location2];
use distanceFromLocation method instead:
float distance = [currentLocation distanceFromLocation:location2];
Source:
http://developer.apple.com/library/ios/#DOCUMENTATION/CoreLocation/Reference/CLLocation_Class/DeprecationAppendix/AppendixADeprecatedAPI.html
No comments:
Post a Comment