使用 cocos2d 的游戏运行良好,但是使用这个新的 xcode 4.3.3 运行不佳。它显示此错误:
Property 'gameMode' not found on object of type 'id<UIApplicationDelegate>'
在这部分代码中:
-(void)oneDuckClicked:(id)sender{
[[UIApplication sharedApplication] delegate].gameMode = [NSString stringWithFormat:@"OneDuck"];
[[[UIApplication sharedApplication] delegate] createDifficultySelectionScene];
}
-(void)twoDucksClicked:(id)sender{
[[UIApplication sharedApplication] delegate].gameMode = [NSString stringWithFormat:@"TwoDucks"];
[[[UIApplication sharedApplication] delegate] createDifficultySelectionScene];
}
有任何想法吗?