0
votes

Does anyone else notice that the contentOffset of UIScrollView doesnt update during a flick gesture?

It only updates after the flick gesture has totally completed, when the flick gesture is finished.

After the finger has left the screen, the scrollview keeps moving, in the decelerating phase. but this isnt reflected in the contentOffset of the UIScrollView.

Is there a way to track where the contentOffset is during the decelerating part of the flick gesture?

I have an OpenGL layer on top, and i want it to move with the scrollView. Can't seem to get the right info out of the scrollview though...

Thoughts?

thanks,

michael

1
Are you ruling out making the EAGLLayer a sublayer of UIScrollView's content view? That's certainly the simplest solution. - Tom
hm. even if i were to do this.. id have to somehow translate the flicks into OpenGL... if the EAGLLayer is the size of the window. Either that, or I'd be scrolling through an OpenGL layer thats larger than the screen... I'd wonder how intensive that is... And I heard it was bad to mix UIKIT and OpenGL. good idea though, i hadnt thought of that one... I just saw this calayer presentationview, which has information on where the layer is during animation. i will try this out. will update. - Michael Xu

1 Answers

0
votes

The UIScrollViewDelegate method -scrollViewDidScroll: is called continuously during animations.