Gesture和Touch的互相影响
在beginTracking和touchesBegan中我们讨论了,UIControl和UIView对于Touch的不同追踪阶段
当UIView存在GestrueRecognize时,GesuteRecoginzer的 cancelsTouchesInView属性会在手势被正确识别后中断追踪
1 | public class TouchControl: UIControl { |
cancelsTouchesInView默认 打印日志
1 | UIView Touches Began ........... |
cancelsTouchesInView = false 打印日志
1 | UIView Touches Began ........... |