I have tableviewCellwhere the user can scrollhorizontally. Since it scrollViewcovers almost everything cell, the method is tableView didSelectRownot called if the user clicks a button cell.
So, I thought that I could pass the touch event UIScrollViewto cell, but still the call was didSelectRownot called. I subclassed UIScrollViewto pass a touch event only if the touch was not a drag:
- (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event
{
NSLog(@"touch scroll");
if (!self.dragging)
[self.superview touchesEnded: touches withEvent:event];
else
[super touchesEnded: touches withEvent: event];
}
Any ideas on how to pass a click into a table to trigger delegate calls and keep scrolling inside scrollView?
source
share