I have a tableviewCell
, where the user can scroll
horizontally. Since the scrollView
covers nearly the whole cell
, the tableView
method didSelectRow
gets not called if the user clicks the cell
.
So I thought, I could pass the touch event of the UIScrollView
to the cell
, but still the didSelectRow
doesnt gets called.
I subclassed UIScrollView
to pass the touch event only, if the touch was not a drag:
- (void) touchesEnded: (NSSet *) touches withEvent: (UIEvent *) event
{
NSLog(@"touch scroll");
// If not dragging, send event to next responder
if (!self.dragging)
[self.superview touchesEnded: touches withEvent:event];
else
[super touchesEnded: touches withEvent: event];
}
Any ideas on how to pass the click to the table, to get the delegate-methods called and keep the scrolling inside the scrollview
?