2020-09-08
2020-09-08 本文已影响0人
卫博生
事件的传递是从上到下(父控件到子控件),
hitTest:withEvent:方法
pointInside方法
事件的响应是从下到上(顺着响应者链条向上传递:子控件到父控件。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
事件的传递是从上到下(父控件到子控件),
hitTest:withEvent:方法
pointInside方法
事件的响应是从下到上(顺着响应者链条向上传递:子控件到父控件。