Touch Processing Handoff for Subview
I have a table view that is in front of the scroll view. When the user drags vertically, I want the table to scroll up and down, and when they are dragged horizontally, I want the scrolling to appear behind in order to scroll its image.
I understand how to test for touches using the UIResponder delegate methods to determine if the user is scrolling horizontally or vertically.
I'm looking for advice on how to transfer touch handling to a scroll view in a horizontal scroll window. How do I make events stop flowing to the table view and to the scroll view (which is the next Responder)?
I think you want Responder Objects and Responder Chain
Here is some sample code on how to route the event to your next responder. You don't stop accepting events. You just chain them as needed. Obviously, this means that you will need to maintain state on your first responder.
a source to share