![](https://img-my.csdn.net/uploads/201205/28/1338209957_5268.png)
![](https://img-my.csdn.net/uploads/201205/28/1338209973_5077.png)
在CClayer的init里加上
self.isTouchEnabled = YES;
然后实现触摸事件
-(void) ccTouchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
{
CCNode *node = [self getChildByTag:10];
CCLabelTTF *labelx = (CCLabelTTF *)node;
// change the label's scale randomly
labelx.scale = CCRANDOM_0_1();
}
{
CCNode *node = [self getChildByTag:10];
CCLabelTTF *labelx = (CCLabelTTF *)node;
// change the label's scale randomly
labelx.scale = CCRANDOM_0_1();
}