當我嘗試通過取消註釋下面的函數(如文檔建議)來激活觸摸移動支持:Cocos3D handleTouch:ofType:不承認
///*
-(void) ccTouchMoved: (UITouch *)touch withEvent: (UIEvent *)event {
[self handleTouch: touch ofType: kCCTouchMoved];
}
//*/
我得到的編譯錯誤:
No visible @interface for 'CC3HelloWorldLayer' declares the selector 'handleTouch:ofType:'
該函數在CC3layer繼承的CCLayer.h中聲明。
這個奇怪的錯誤是什麼原因造成的?