Forward horizontal swipe events on UITableView to parent view
Posted
by
D-Nice
on Stack Overflow
See other posts from Stack Overflow
or by D-Nice
Published on 2013-11-03T01:23:11Z
Indexed on
2013/11/09
9:54 UTC
Read the original article
Hit count: 257
I have a UITableView that I want to have respond to taps and vertical swipes, but still have something like userInteractionEnabled = NO for horizontal swipes. By that I mean, it would not handle touches and pass the touch event back to its superview.
Things I've tried that didn't work:
returning
NOin- (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPathOverriding
touchesBegan/touchesMoved/touchesEndedand passing the event to the next responderAdding gesture recognizers for horizontal swipes and setting
cancelsTouchesInViewtoYES
I've been trying to fix this on and off for several weeks, so any help is greatly appreciated!
© Stack Overflow or respective owner