내 app에 주석을 추가하려고합니다. AnyObject에 추가하는 데 문제가 있습니다. 두 항목 (주석 1 개 상세 및 2) 두 번째 주석이 첫 번째 항목을 우선 제외 대상에 추가 할 것 그리고 내가 주석 2.신속한 MapKit 주석
var locations = [AnyObject]()
var myAnnotation = MKPointAnnotation()
// Annotation 1 Detail
myAnnotation.coordinate = CLLocationCoordinate2DMake(-38.219836, 146.246249)
myAnnotation.title = "Annotation Pin 1"
myAnnotation.subtitle = "Pin 1"
locations.append(myAnnotation)
// Annotation 2 Detail
myAnnotation.coordinate = CLLocationCoordinate2DMake(-37.219836, 146.246249)
myAnnotation.title = "Annotation Pin 2"
myAnnotation.subtitle = "Pin 2"
locations.append(myAnnotation)
주석과 아무 관련이 없습니다. – matt