我正在开发OSX应用程序。 我一个子类MKAnnotation: import Foundation
import MapKit
class LocationAnnotation: NSObject, MKAnnotation {
var image: NSImage?
var title: String?
var coordinate: CLLocation
我正尝试使用字符串数组将引脚添加到映射。但它只显示一个引脚不显示地图上的第二个引脚。 func getDirections(enterdLocations:[String]) {
let geocoder = CLGeocoder()
// array has the address strings
for (index, item) in enterdLocatio