Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do i get an MKAnnotationView's coords?

I have a method like this:

- (void)mapView:(MKMapView *)mapView annotationView:(MKAnnotationView *)view calloutAccessoryControlTapped:(UIControl *)control

Using this, can i get the coordinates?

like image 915
tarnfeld Avatar asked Mar 20 '10 23:03

tarnfeld


1 Answers

return view.annotation.coordinate;
  • .annotation property: http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MKAnnotationView_Class/Reference/Reference.html#//apple_ref/doc/uid/TP40008207-CH1-SW7
  • .coordinate property: http://developer.apple.com/iphone/library/documentation/MapKit/Reference/MKAnnotation_Protocol/Reference/Reference.html#//apple_ref/doc/uid/TP40008208-CH1-SW2
like image 50
kennytm Avatar answered Sep 22 '22 10:09

kennytm