プログラマメモ2 - programmer no memo2

「Layer#ccTouchBegan override me」がでたら 2012/08/16

Layer#ccTouchBegan override me

とりあえず、でたら実装しておけってことか。

-(BOOL) ccTouchBegan:(UITouch *)touch withEvent:(UIEvent *)event
{
    return YES;
}

-(void) ccTouchMoved:(UITouch *)touch withEvent:(UIEvent *)event
{
    // do something, or not
}

-(void) ccTouchEnded:(UITouch *)touch withEvent:(UIEvent *)event
{
    // do something, or not
}

参考
 App crashing when touching a sprite and when touching menu background. « cocos2d for iPhone

: