我正在開發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