Reputation: 441
I have TableView and I'm placing UIScrollView with images inside every cell.
My problem is, when I click the UIScrollView, the code that should run on didSelectRowAtIndexPath
is not running.
I know why, but I don't know how to pass the click to the relevant cell.
I tried using TAG so self.scrollViewer.tag = [indexPath row];
' and adding UITapGestureRecognizer
for every scrollView, but it's not accurate... somtimes it loads the data of the previous or next cell...
if the previous or next cell is little showing a little bit, the tag changes.. so I have to be exactly on the current cell for the correct tag.
Thanks in advance!
Upvotes: 0
Views: 143
Reputation: 4286
I think what you want is pointInside, hitTest:withEvent
This thread will likely help.
Upvotes: 1