事件穿透

1.touch事件传递

touchu的VIEW作为第一响应者,接收响应事件;

若是需要传递事件到各个父层,则调用 [super touchesBegan:touches withEvent:event];即可,否则,就只自己响应触摸事件。

 

2.手势事件传递

      会响应叠层VIEW的第一个手势事件

原文地址:https://www.cnblogs.com/xiangjune/p/5192180.html