【发布时间】:2013-01-03 16:01:16
【问题描述】:
当我在 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]];
【问题讨论】:
标签: objective-c view properties cocos2d-iphone scene