【发布时间】:2015-10-23 08:50:48
【问题描述】:
我想知道,是否有办法识别 UITouch 的每个位置。
在 touchesMoved 中跟随我的手指位置:
UITouch *touch = [touches anyObject];
CGPoint p = [touch locationInView:self];
我遇到了问题,如果我快速移动手指,则无法检测到“p”位置。它只是不会读取每个 X 或 Y 位置,但会丢弃一些。
示例: 我正在使用 NSLog 跟踪我的触摸位置,如果我在 iPad 上快速移动手指,NSLog 消息会显示 Y 位置,例如:... 281,301,322,346,375...
【问题讨论】:
标签: ios objective-c uitouch cgpoint