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];
}
何か案は?