How do I shut down OpenGL tasks in applicationWillResignActive?

流过昼夜 提交于 2019-12-06 08:19:08

To finish program at user push home button ? on Xcode, choice Target and select Info tab. Custom iOS Target Properties, add a Key named

Application does not run in background

and set Value

YES

Try it!

p.s. Not necessary write glFinish().

I am now working on a Sprite Kit game and I had a similar problem.

Check if you have on the screen the node that tells the FPS, because that might be rendering and causing the crash.. It did for me.

In applicationWillResignActive method I call my pause method as all of you.

*edit - and check for audio playing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!