iOS 6 app crashes in EAGLContext when displaying maps

强颜欢笑 提交于 2019-12-30 02:30:14

问题


We have an app that uses OpenGL and MKMapView. When we switched to iOS 6 it started crashing at [EAGLContext setCurrentContext:] with EXC_BAD_ACCESS whenever we tried to display a map after setting our own EAGLContext.


回答1:


iOS 6 maps are OpenGL based. Your app will crash if you don't call

[EAGLContext setCurrentContext:nil]

after you have set your own EAGLContext. We fixed our bug by putting the above call into the dealloc method of our class that was interacting with EAGLContext.



来源:https://stackoverflow.com/questions/12670528/ios-6-app-crashes-in-eaglcontext-when-displaying-maps

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