MapKit in Swift, Part 3 - MKPointAnnotation, addAnnotations
问题 I'm trying work with Map Kit in Swift. I try to display the area on the map, some pins (MKPointAnnotation) and the current position. I decided to extend the class MKPointAnnotation - add a category. Class MyAnnotation.swift: import UIKit import MapKit class MyAnnotation: MKPointAnnotation { var category = Int() } I made an array of tuples to store information about the objects. In the loop I process all the elements of this array and make from it an array MyAnnotation . Then, I try to display