First, the touch event transfer principle
(1) The large direction is: passed from the parent control to the child control.
--The parent control checks whether it can accept the handling of the event first
--and then look at the touch that's not in your own range
--If so, traverse the child controls to see if there are any suitable child controls to handle
--If the child controls are not appropriate, then the parent control is handled by itself.
The big rule is that events are typically from uiapplication >>> UIWindow >>> Individual controls
Second, the responder chain
--After finding this control, see if this control has implemented touches began, moved, and ended events.
-If not, then it will look for its parent control, which in turn pushes up.
--If the control implements a method and also uses [super ...], then both the parent control and it can make the processing. So, you can use [super ...] You can enable multiple controls to handle the same event .
Note: In special cases, if the current view is a view of the controller, then the previous responder of the view is the controller.
The "iOS Dev-88" event delivery principle explains which control handles events and how the responder chain is introduced