【发布时间】:2014-03-01 04:53:25
【问题描述】:
当我使用 [touch previousLocationInView] 时,xcode 有警告“不兼容的指针类型发送...”
为什么?
这是我的代码:
- (void)touchMoved:(UITouch *)touch withEvent:(UIEvent *)event
{
[super touchMoved:touch withEvent:event];
CGPoint touchLocation = [touch locationInNode:self];
CGPoint preTouchLocation = [touch previousLocationInView:self];// --> Incompatible pointer types sending PTTouchScene * to parameter of type UIView *
}
【问题讨论】: