包含touchesbegan的词条
接下来说说 cancelsTouchesInView delaysTouchesBegan delaysTouchesEnd 这三个属性cancelsTouchesInView栗子 栗子中touchesbegan,pancancelsTouchesInView = YES时touchesbegan,为什么会打印quottouchesMoved调用touchesbegan了quot呢这就涉及到第二个属性 delaysTouchesBegan touchesbegan,这是因为手势识别是有一个过程touchesbegan的,拖拽手势需要一个很小的手指移动的。
3 拦截,继续往下分发事件, 重写自己的 touchesBeganwithEvent 进行事件处理,同时调用 super touchesBeganwithEvent 将事件往下传递,达到 一个事件多个对象处理 的目的 建议使用super touchesBegantouches withEventevent super 的touches对应方法中默认将事件继续向上传递给 next responder 不建议直接。
相关标签 :



