我正在使用这些方法和这些变量
CGPoint touchBegan;
CGPoint touchEnd;
-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
}
-(void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
}
- (void) touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event {
}
但我无法得到两点之间的距离。例如用手指画一条线并获取 CGPoint touchBegan 和 CGPoint touchEnd 之间的距离
感谢任何帮助谢谢