开发者

UIButtons unresponsive when put along with EAGLView

开发者 https://www.devze.com 2022-12-14 10:52 出处:网络
In my iPhone game, I have an EAGLView where OpenGL rendering happens. Above it I have 2 UIButtons placed in the XIB. Once the EAGLView Viewcontroller is pushed, for the first few seconds, the UIButton

In my iPhone game, I have an EAGLView where OpenGL rendering happens. Above it I have 2 UIButtons placed in the XIB. Once the EAGLView Viewcontroller is pushed, for the first few seconds, the UIButtons are unresponsive.

But the OpenGL rendering happens seamlessly. Has anyone suffered from a similar problem ? Any pointers on what could be wro开发者_StackOverflow中文版ng ?

I brought the render time interval from 1.0f/60.0f to 1.0f/30.f, still same problem


I read somewhere that ui elements above the opengl layer don't really work correctly unless you pause the opengl layer

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号