我想让我的CCLayer子类响应多点触控.在我调用的init方法中
self.isTouchEnabled=YES;
Run Code Online (Sandbox Code Playgroud)
在一个名为registerWithTouchDispatcher的方法中,我调用了
[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:NO];
Run Code Online (Sandbox Code Playgroud)
在我的应用代表中,我打电话
[glView setMultipleTouchEnabled:YES];
Run Code Online (Sandbox Code Playgroud)
调用ccTouchBegan:withEvent:方法,但从不调用ccTouchesBegan:withEvent.我对cocos2d很新,所以它可能很简单,我只是无法弄清楚它是什么.