UIScrollView dentro de un UITableViewCell - No didSelect call
tengo untableviewCell
, donde el usuario puedescroll
horizontalmente. Desde elscrollView
cubre casi todocell
, latableView
métododidSelectRow
no se llama si el usuario hace clic en elcell
.
Así que pensé, podría pasar el evento táctil de laUIScrollView
alcell
, pero sigue siendo eldidSelectRow
no se llama Yo subclasificoUIScrollView
solo para pasar el evento táctil, si el toque no fue un arrastre:
- (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];
}
Cualquier idea sobre cómo pasar el clic a la tabla, para llamar a los métodos de delegado y mantener el desplazamiento dentro de lascrollview
?