[cocos2d]cocos2d 2.1与ios 6.0

最近把xcode升级到4.5了,ios也编程6.0

mark一下需要修改的地方(针对于cocos2d 2.1版本),虽然都是warning,但是对于强迫症患者来说无法忍受啊~

修改一

libs-CocosDenshion-CDAudioManager.m 

把这两句

AVAudioSession* session = [AVAudioSession sharedInstance];

session.delegate = self;

改成

[[AVAudioSession sharedInstance] setActive:YES error:nil];

 

修改三

 然后下面是helloworld的(可选修改,如果你想看helloworld的话)

HelloWorldLayer.m

(1)

//[[app navController] presentModalViewController:achivementViewController animated:YES];

[[app navController] presentViewController:achivementViewController animated:YES completion:nil];

 

(2)

//[[app navController] presentModalViewController:leaderboardViewController animated:YES];

[[app navController] presentViewController:leaderboardViewController animated:YES completion:nil];

(3)两处

//两处
//
[[app navController] dismissModalViewControllerAnimated:YES]; [[app navController] dismissViewControllerAnimated:YES completion:nil];

 

你可能感兴趣的:(cocos2d)