为什么我只能看到 nowPoint 的“y”分量在变化,[“x”分量总是“0”]??
- (void) touchesMoved: (NSSet *) touches withEvent: (UIEvent *) event {
[super touchesMoved:touches withEvent:event];
CGPoint nowPoint = [[touches anyObject] locationInView:self.view];
CGPoint prevPoint = [[touches anyObject] previousLocationInView:self.view];
NSLog(@"x %d, y %d", nowPoint.x, nowPoint.y);
}