ios 调用第三方sdk视频游戏,再返回游戏时,界面卡了,感觉是不渲染了,声音正常播放,点击按钮后还可以切换场景,但是界面一直停在返回游戏那个界面,有时还会黑屏,但是不影响事件
(android下没有这个问题,只有ios下有这个黑屏)
第三方给的ios demo是用Quick-Cocos2dx-Community-3.6.1_Release,
ios里有段代码
void cocosGameApplicationDidEnterBackground(){
printf(“void cocosGameApplicationDid EnterBackground()”);
Director::getInstance()->stopAnimation();
Director::getInstance()->pause();
SimpleAudioEngine::getInstance()->pauseBackgroundMusic();
SimpleAudioEngine::getInstance()->pauseAllEffects();
Director::getInstance()->getEventDispatcher()->dispatchCustomEvent("APP_ENTER_BACKGROUND_EVENT");
}
void cocosGameApplicationWillEnterForeground(){
printf("void cocosGameApplicationWillEnterForeground EnterForeground()");
Director::getInstance()->startAnimation();
Director::getInstance()->resume();
SimpleAudioEngine::getInstance()->resumeBackgroundMusic();
SimpleAudioEngine::getInstance()->resumeAllEffects();
Director::getInstance()->getEventDispatcher()->dispatchCustomEvent("APP_ENTER_FOREGROUND_EVENT");
}
但我用的是cocos creater 2.0.7的版,Director类没找到,
想问下大神:cocos2dx里的上面方法,在cocos creater里有没有什么代替的方法,或是能解决卡屏黑屏的问题,谢谢!
@panda @jare
,还是没有进展!

