MapKit Annotations

Made a mapview with the Mapkit, and followed some tutorials online.

  • How could the annotations I'm adding to the map be saved? So when they go back to the app, they will always show.

  • After doing the first question ,how could customers delete an annotation if they wanted to?

  • How could I get directions to an annotation I've made, and get directions by boat?

Thanks in advance.

Create a data model structure which holds the MKAnnotation data. Insure that the structure is Codable. Then create an init which initializes your data from an MKAnnotation. Create an array of your data and save it via Json.

MapKit Annotations
 
 
Q