当我在 Cocoa Touch 中改变视图时,我使用这个:
GameViewController *game = [self.storyboard instantiateViewControllerWithIdentifier:@"GameViewController"];
game.something = someValue;
game.somethingOther = someOtherValue;
[self presentViewController:game animated:NO completion:^{}];
我之前如何传递这个值replaceScene
?
我现在有这个:
[[CCDirector sharedDirector] replaceScene:[CCTransitionFade transitionWithDuration:1.0 scene:[GameLayer scene] withColor:ccWHITE]];