MapKit & CoreData
Hi everyone,
I currently working on an application that will use MapKit and CoreData. The CoreData part will store/restore map pin co-ordinates and place them on the MapView. I am however a little stuck...
Currently, I am able to read and write CoreLocation values (Long/Lat) using CoreData. What I am stuck with though is the correct way to add the map pins to the MapView so the managed objects from CoreData are kept in place. These I assume would be required to remove a specific object from the MapView and the CoreData store.
I currently do not require custom annotations (basic coloured pins are enough).
My CoreData managedObjectContext variable is called (context), and is accessable to my MapViewController.
My CoreData entity is called LocationInfo.
My longitude and latitude attributes are called locLong and locLat and are presently stored as Double values in my DataModel.
Any assistance in getting the pins placed on my MapView would be of great help.
If you require any further information I will provide what I can!
Thank you in advance.
__________________
Mark
Check out my apps on the AppStore
|