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?
For every easy question, there's an easy answer:
mapItem.placemark.location.coordinate.latitude
mapItem.placemark.location.coordinate.longitude
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With