在我的地图视图中,我正在创建类似cafe、bar、night_club和的图钉restaurant。例如,我如何编码以仅删除特定点cafe。我已经使用下面的代码成功删除了所有注释。我不知道如何删除一个特定的(而不是全部)。
for (id<MKAnnotation> annotation in routeMapView.annotations)
{
if ([annotation isKindOfClass:[MapPoint class]])
{
[routeMapView removeAnnotation:index=annotation];
}
}