UITableView in UIView in UIScrollView. When scrolling tableview don't scroll scrollview too
问题 I have a UITableView inside a UIView inside a UIScrollView. Problem: when i scroll/drag the tableview, the scrollview scrolls too. What i need is for the tableview not to pass the scroll to the scrollview. Also i need to be able to use the scrollview when i scroll it directly. How can i do this? Cheers 回答1: I fixed it using "hitTest" on the tableview. - (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event If the event originated within the tableview, i disable the parent's scrollview