2

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.

Dave Batton
  • 8,795
  • 1
  • 46
  • 50
bdc
  • 178
  • 1
  • 12

2 Answers2

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