我正在学习使用cocos2d(版本2)进行游戏开发的Lynda.comiOS教程。讲师使用以下代码使sprite图像在发生触摸事件时变大。下面代码中的日志语句有效(即启用了触摸事件)但是当我点击模拟器时图像没有变大。原来这一行的mole是nilCCSprite*mole=(CCSprite*)[selfgetChildByTag:1];这是整个方法-(void)ccTouchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event{UITouch*touch=[touchesanyObject];CGPointlocation=[touchloc