-2

这是否可以获得注释点的纬度和经度

- (MKAnnotationView *)mapView:(MKMapView *)mapView viewForAnnotation:(id <MKAnnotation>)annotation {


}

在这个函数中

4

2 回答 2

1
annotation.coordinate.latitude
annotation.coordinate.longitude

但是@AlexWien 是对的……对文档的快速概述可以让您轻松发现这一点……

于 2013-02-08T13:04:57.033 回答
-1

MkAnotaion中,第一个属性是坐标。

于 2013-02-08T13:12:04.543 回答