iPhone 应用程序 - 启动或应用程序挂起时显示白屏
我们对某些应用程序感到有点头疼,也许你们中的任何人都可以减轻痛苦,这里是:
我们有一个 OpenGLES(1) 应用程序,它在任何尚未测试的设备上都可以正常工作,从 ipod touch 3.2 到 iphone 4、ipad 1、iOS 4.2。
但是,当用户在应用程序运行时单击“主页”两次时,应用程序视图会向上移动以容纳手机的“任务栏”,但随后视图会变成白色。
在阅读了各种帖子后,我怀疑这是因为我尚未实现“applicationWillResignActive”委托方法,但我不确定情况是否确实如此,如果是这样,我将如何避免白屏。顺便说一句,当 UIAlertView 添加到 mainWindow.view 时,还存在背景 EAGLView 变白(或消失?)的问题,这在我看来是一个相关问题。
我将非常感谢任何建议。
乔纳森
we're having a bit of a headache with some apps, Perhaps anyone of you may be able to alleviate the pain, here goes:
We have an OpenGLES(1) application, and it works fine on any device yet tested, from ipod touch on 3.2 to iphone 4, ipad 1, with iOS 4.2.
however, when the user clicks 'home' twice while the app is running, the application view moves up to accommodate the phone's 'taskbar', but then the view turns white.
I suspect after reading various posts this is because I have not yet implemented the 'applicationWillResignActive' delegate method, but I'm unsure if this is indeed the case, and if so, how I would go about avoiding the white screen. Incidentally, there is also the problem that the background EAGLView goes white (or away ?) when an UIAlertView is added to the mainWindow.view, which seems to me a related problem.
I would much appreciate any suggestions.
Jonathan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您的帧缓冲区正在被破坏,可能在 EAGLView 或类似的地方。
恢复控制权后重建帧缓冲区。
Your framebuffer is being destroyed, probably in EAGLView or somewhere similar.
Rebuild the framebuffer after you get control back.