Alex Rivera | Logout

CADisplayLink stops updating when UIScrollView scrolled

Asked 2010-03-26T15:20:09.407
19

Title is quite self explanatory, but I have some animation being done in a loop triggered by CADisplayLink. However, as soon as I scroll a UIScrollView I have added to my view hierarchy, the animation stops immediately, only to return again when scrolling has completely stopped and come to a standstill....

Anyway to cancel this behaviour?

Edit
Report

1 Answer

4

Here you can find a better (and more complex) solution:

Animation in OpenGL ES view freezes when UIScrollView is dragged on iPhone

that allows you to use 'NSRunLoopCommonModes' and avoids OpenGL freezing when holding a finger without scrolling.

This is related to what Doug found (setting the frame interval of CADisplayLink to 2 instead of 1 fixing UIScrollView).

answered 2011-05-14T17:00:55.800

Your Answer