Wie kann ich eine MKAnnotationView des coords bekommen?
-
21-09-2019 - |
Frage
Ich habe eine Methode wie folgt aus:
- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control
Mit diesem, kann ich die Koordinaten?
Lösung
return view.annotation.coordinate;
-
.annotation
Eigenschaft: http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40008207-CH1-SW7 -
.coordinate
Eigenschaft: http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MKAnnotation_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40008208-CH1-SW2
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow