事件的传递是从上到下(父控件到子控件),
hitTest:withEvent:方法
pointInside方法
事件的响应是从下到上(顺着响应者链条向上传递:子控件到父控件。
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
事件的传递是从上到下(父控件到子控件),
hitTest:withEvent:方法
pointInside方法
事件的响应是从下到上(顺着响应者链条向上传递:子控件到父控件。
本文标题:2020-09-08
本文链接:https://www.haomeiwen.com/subject/fbpdektx.html
网友评论