touchesBegan: withEvent:触摸事件传递顺序

来源:互联网 发布:淘宝电脑端详情页尺寸 编辑:程序博客网 时间:2024/05/22 12:55
  • (void)touchesBegan:(NSSet )touches withEvent:(UIEvent )event;
  • (void)touchesMoved:(NSSet )touches withEvent:(UIEvent )event;
  • (void)touchesEnded:(NSSet )touches withEvent:(UIEvent )event;
  • (void)touchesCancelled:(NSSet )touches withEvent:(UIEvent )event;
    传递顺序:view->superView(没有跳过此步)->所属viewController->parent viewController1 的view-> parent viewController1 -> parent viewController2的view -> parent viewController2 ->(以此类推)……->UIWindow->UIApplication->end
0 0
原创粉丝点击