iOS OpenGL ES screen rotation while background apps bar visible

前端 未结 2 1282
夕颜
夕颜 2021-02-09 05:40

My app uses GLKit to render 3D scene with OpenGL ES.

All works fine, except one thing. When I launch my app in iPad and display background apps

2条回答
  •  长情又很酷
    2021-02-09 05:53

    Implement the delegate method (if you haven't done it already)

    -(void)applicationWillEnterForeground and unpause the GLKViewController from there.

    From what I understood from your question you can keep the game paused but resize the glView in this method as well, but without seeing any code is also difficult to really see what's going on.

提交回复
热议问题