iPhone - dragging on UITableView halts rendering of OpenGL in background
I have an OpenGL-based iPad project. In one view I have objects being rendered and floating on the screen.
When I add a transparent UIView on top of this view with a transparent table view with custom cells, I can see the table view and the objects still being rendered.
Now - when I go to drag on the table view to scroll through elements, the rendering halts. As soon as I release from dragging, rendering continues. Touching a开发者_StackOverflow中文版nd not dragging on the table view does not cause the rendering to halt, only when dragging.
Has anyone ever encountered this? This happens on both the simulator and device.
My thinking: rendering for OpenGL occurs at a framerate determined by the hardware. When dragging on a UITableView, does the system allocate all of its resources to scrolling the table.
An answer with at least some code is desired!
Many thanks!
Dragging an UIScrollView
enters a modal loop that only processes certain run loop modes. Use CFRunLoopAddTimer
to specify which run loop mode your timer runs under.
精彩评论