- (void)touchMoved:(CCTouch *)touch withEvent:(CCTouchEvent *)event { CGPoint touchPoint = [[CCDirector sharedDirector] convertToGL:[touch locationInView:touch.view]]; [self updateDirectionForTouchLocation:touchPoint]; }
这个不好用。
看看代码高亮。
原文:http://www.cnblogs.com/kebinzhi/p/4475158.html