在新的cocos框架里,旧的调用ccTouchBegan方法被和谐掉了!so!
直接来代码
1
-(
void
)doSometing{
2
[[[CCDirector sharedDirector] touchDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];
3
}