2012-07-22 5 views
4

현재 내 cocos2d 앱을 0.99에서 2.0으로 업그레이드 중입니다. 응용 프로그램은 QR 코드를 스캔 ZBarSDK를 사용하고 통합은 그렇게 이루어졌다 :cocos2d v2.0 upgrade & RootViewController

// present and release the controller 
[[RootViewController sharedInstance] presentModalViewController: reader animated: YES]; 

을 그러나적인 Cocos2D의 새 버전에서 작동하지 않습니다. cocos2d 2.0에서 작동하게하려면 어떻게해야합니까?

답변

3

사용이 코드 :

AppController *app = (AppController*) [[UIApplication sharedApplication] delegate]; 

[app.navController presentModalViewController: reader animated:YES];