私のマップビューでは、、、、のようなピンを作成しcafe
てbar
いnight_club
ますrestaurant
。cafe
たとえば、特定のポイントのみを削除するようにコーディングするにはどうすればよいですか。以下のコードを使用して、すべての注釈を正常に削除しました。(すべてではなく) 特定の 1 つを削除する方法がわかりません。
for (id<MKAnnotation> annotation in routeMapView.annotations)
{
if ([annotation isKindOfClass:[MapPoint class]])
{
[routeMapView removeAnnotation:index=annotation];
}
}