I'm trying to have a mapView cover an entire UITableViewCell and disable all user activity on this mapView, but still have the cell clickable. However, this mapView (even though I sent subview to back) is intercepting the user clicks and is causing the didSelectRow method to never get called.
Asked
Active
Viewed 506 times
2
-
Determine the CGPoint of the click instead of using didSelectRowAtIndexPath ... something like this http://stackoverflow.com/questions/23784630/how-to-find-indexpath-for-tapped-button-in-tableview-using-seque – DogCoffee Jan 16 '16 at 02:38
-
How are you disabling user interaction? – Dave Batton Jan 16 '16 at 04:37
-
1Did you find solution for this? – Satyam Jul 06 '17 at 17:41
2 Answers
0
You can try the way below:
You add a view above mapView and set background color is clearColor
. I think it will resolve your problem.

vien vu
- 4,277
- 2
- 17
- 30
-
But it disables the annotations, scrolling of map etc also. Any other way to handle the tap on cell? – Satyam Jul 06 '17 at 17:45
0
I'm not sure if you can disable map clicking completely.
Do this: add a UiButton over the map with a clear background, this button can catch all pressing.

Vincent
- 4,342
- 1
- 38
- 37