On my map, overlay is updated as and when the user moves. I want to pop up the current location's details only when the OVERLAY is touched not when touched anywhere else on the map.
Asked
Active
Viewed 125 times
1 Answers
0
Write an action method, that shows the popover. After that write some code that detects when the overlay is touched. The last step is to make sure the action method that shows the popover is called only when a touch is detected on the OVERLAY.
Good Luck!

Nikola Kirev
- 3,152
- 3
- 22
- 30
-
Thats where am struck. Should I explicitly add gesture to the overlay or is the any other easy way to do it? – Manoj Jan 08 '13 at 12:19
-
Look at this question here. He could not find a way to do it, but he added an annotation to the map where the overlay is. http://stackoverflow.com/questions/6436479/touch-events-on-mkmapviews-overlays If you do not want to add an annotation, one solution is to make a custom annotation and make it transparent. – Nikola Kirev Jan 08 '13 at 12:36