I'm creating an app that uses CoreData to store points of interest. MKMapItem coordinates are accessible within mapItem.placemark.location. I'd like to pull out the individual latitude and longitude coordinates and store them in a managedObjectContext as doubles. How would I do that?
Asked
Active
Viewed 2,993 times
9
Adrian
- 16,233
- 18
- 112
- 180
1 Answers
15
For every easy question, there's an easy answer:
mapItem.placemark.location.coordinate.latitude
mapItem.placemark.location.coordinate.longitude
Adrian
- 16,233
- 18
- 112
- 180