core location - Calculate distance between two latitudes/longitudes in MapKit / CoreLocation -


I was looking at the getDistanceFrom method in CoreLocation to set the distance between the two points I am getting the error when trying to use Corlao ocation ...

Im using 3.1.2 I have tried to do it, but gives an error :

  CLLocation * userLoc = [[CLLocation alloc] initWithCoordinate: appDelegate.mapView2.userLocation.coordinate]; CLLocation * poiLoc = [[CLLocation alloc] initWithLatitude: [aPOI.latitude double value] Longitude: [APIOlgram double value]]; Double distance = [User's Mill Distensfromed Poolec] / 1000; NSLog (@ "% d", district);  

Error returned:

  "Objc_class_name_CLLocation", referenced from: verbatim-signature @__ objc @__ cls_refs @ CLLocation in POIDetailViewController.o ld: Symbol (s) not found Collection 2: LD back 1 Exit status  

Am I missing something? <0.01

Thanks

Div class = "post-text" itemprop = "text">

Will need to add core selection framework.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -