我有一个Cocos2d现场(CCCLayer) 和一个CCMENU。我执行协议
- (void) dealloc {
[menu release];
menu = nil;
[super dealloc];
}
当我用共享导演代替另一场景时 它会装上第二场 然后程序崩溃 特别是在
[super dealloc]; //Thread1: Program received signal: "EXC_BAD_ACCESS".
更换现场的电话是
[[CCDirector sharedDirector] replaceScene:
[CCTransitionFade transitionWithDuration:0.5f scene:[SomeOtherScene scene]]];
为什么会这样?我该不该打给[超级协议]?