casillas
casillas

Reputation: 16813

Remove selected annotation from mapView by double click

I need help regarding removing annotation by double click.

Once I click on any existing annotation on my map, how do I differentiate which annotation/pin selected (double click)?

or any other suggested/common way to delete pins from mapView?

thanks in advance!!

Upvotes: 0

Views: 462

Answers (1)

ytur
ytur

Reputation: 1232

double tap gesture recognizer is reserved by map kit framework to zooming in map view by default, but you can suppress that by using "hittest" in custom "MKPinAnnotationView" class.

I prepeared an example to show how to make callout touchable in map view with "hittest". you can achieve this problem with the same way as I can do for callouts. Detect tap on title of callout

Upvotes: 0

Related Questions