- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- (void)touchesMoved:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
- (void)touchesEnded:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
// NSLog(@"%ld",touches.count); //获取几个手指在触摸
需要设置多点触摸的属性
self.view.multipleTouchEnabled = YES;
// NSLog(@"%ld",touch.phase); //获取当前触摸的类型
// NSLog(@"%ld",touch.tapCount); // 获取点击次数
NSLog(@"%s",__func__); 打印当前函数的名字
touch.window 触摸的窗口
CGPoint cureentpoint = [touch locationInView:touch.window]; 当前点
CGPoint previousPoint = [touch previousLocationInView:touch.window]; 之前的点