views:

185

answers:

1

Hi all,

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

A: 

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

hatfinch
ok thanks hatfinch.heres a complication: the uiscrollview is embedded inside the mkmapview....does that make sense? im getting the scrollview thats used by the mkmapview... and i bet that the mkmapview already has a delegate for the scrollview. is it possible to make two delegates? how do i look inside the mkmapview to know how its using the embedded scroll view...?thanks a lot!
Michael Xu
yup, my worst suspicions were confirmed.. the mkmapview is already using the delegate... and setting our own breaks mkmapview (specifically, when im scrolling now, the map doesnt load up bc the delegate isnt getting info on the scroll). ill try adding some sort of code that passes along the messages to mkmapview
Michael Xu
not working... the information passed to the delegate isnt up to date.
Michael Xu
What do you mean by "isn't up to date"?
hatfinch