For my needs I have a UITableView directly added under a UISCrollView :
— Main UIView
——– UITableView
——– UIScrollView
So when I scroll my scrollview I change the content offset of my tableview. It works perfectly.
But when I tried to select a cell I can’t catch delegate method :
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
Is there something special to do ? I tried to subclass UIScrollView and implement :
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
It works but I can’t scroll my UIScrollView …
Try this,
you have to use UITapGestureRecognizer…