1

我是使用 MapKit 框架的新手。

我在地图上特定的经纬度对处向 MKAnnotationView 对象添加图像,例如在 (latA, longA) 处。

对于下一次迭代,我需要删除添加的注释并在不同的 lat-long 对添加新注释,比如在 (latB, longB)。

让我知道任何帮助。

谢谢@dity@

4

1 回答 1

2

Step1:移除注解[self.mapView removeAnnotation:annotation];

Step2:更改/重新创建注释,并将其添加回来 [self.mapView addAnnotation:annotation]

于 2010-10-26T05:27:19.883 回答