1

我的代码有问题。我从单层过渡到多层,然后旋转设备。之后,我再次将多层替换回单层。一切都按预期工作,直到我再次旋转设备,然后......

Taaraaaa ..应用程序停止运行..有人可以帮助我吗?对于代码:单层到多层

- (void)goToGamePlayScene:(id)sender {
[[NSNotificationCenter defaultCenter] removeObserver:self name:@"UIDeviceOrientationDidChangeNotification" object:nil];
[[CCDirector sharedDirector] replaceScene:[[[MultiLayerScene alloc] initWithGameBoardName:@"coba2"] autorelease]];

}

MULTI LAYER to SINGLE LAYER 注意:以下代码是多层类的子类的代码

[[CCDirector sharedDirector] replaceScene:[HomeScene node]];
4

0 回答 0