iOS 6 app crashes in EAGLContext when displaying m

2019-02-05 07:12发布

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条回答
我命由我不由天
2楼-- · 2019-02-05 07:41

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.

查看更多
登录 后发表回答