2

Possible Duplicate:
How to capture Tap gesture on MKMapView

I'm building a MKMapView app, and I have one doubt! In order to drop a Annotation Point on the map, the user has to hold the finger on the maps for a few seconds, anyone has an idea on how to do it?? After that, he will be able to add information.

Hope anyone could help me with this!

Thanks and good year!

Community
  • 1
  • 1
zoe08
  • 21
  • 2
  • Are you asking how to change (i.e. reduce) the amount of time the location on the map must be touched? – GSP Jan 06 '13 at 01:32
  • Mmmmm nop. I need if anyone has an example code on how to create a pin on the map by holding the finger on the map. Thxs! – zoe08 Jan 06 '13 at 08:09
  • Thxs!! that was what i needed :D – zoe08 Jan 07 '13 at 01:17

1 Answers1

1

You just add a UITapGestureRecognizer to your UIView and on the target action, add the code to drop annotation! An edit to @Pfitz comment ' its not "possible"- "its exact duplicate of How to capture Tap gesture on MKMapView"'

Try the clear answer posted there! Regards

Community
  • 1
  • 1
DD_
  • 7,230
  • 11
  • 38
  • 59