I have a UIView
in which I added a UITapGestureRecognizer
. Inside that view I also have a subview in which is basically some kind of a UITableView
. The question is that why doesn't the UITableView
recognizes the tap on a row, instead it goes to the tap gesture recognizer's handler all the time. Why is this, and how do I solve this? If I set the number of taps to 2, then it works fine. Any idea on how to solve this? Basically it doesn't call the didSelectRowAtIndexPath
.
Set cancelsTouchesInView
of your recognizer to NO
. Otherwise, it "consumes" the touch for itself, and does not pass it on to the table view. That's why the selection event never happens.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With