0

我正在做绘图应用程序,我有以下问题。我有一组应该在屏幕上绘制的点。在 (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event;我在数组中添加触摸点并重绘视图。但问题是当我移动手指太快时,没有连续添加点:

4

1 回答 1

0

I would make a CGPoint for last touch and one for current touch, then calculate the distance. If the distance is to far (meaning that the user moved to fast), draw dots in between them.

于 2012-07-27T23:52:54.687 回答