我目前正在将我的cocos2d应用程序从0.99升级到2.0.该应用程序使用ZBarSDK进行QR码扫描,并进行集成: // present and release the controller[[RootViewController sharedInstance] presentModalViewController: reader ani
// present and release the controller [[RootViewController sharedInstance] presentModalViewController: reader animated: YES];
但是,这不适用于新版本的cocos2d.我应该更改什么才能使它与cocos2d 2.0一起使用?
使用此代码:AppController *app = (AppController*) [[UIApplication sharedApplication] delegate]; [app.navController presentModalViewController: reader animated:YES];