When the user “clicks” a UIScrollView , causing it to scroll with momentum, is there a way to figure out the final contentOffset before braking ends?
Basically, I would like to know that from scrollViewDidEndDragging:willDecelerate: from scrollViewDidEndDragging:willDecelerate: is the final scrollViewDidEndDragging:willDecelerate: instead of scrollViewDidEndDecelerating:
There is a float property called decelerationRate , which can be one part of the puzzle, but I still have to figure out what to do with it.
PS: I have pagingEnabled set to YES . In iOS 5 there is actually scrollViewWillEndDragging:withVelocity:targetContentOffset: but the document says that it does not start if pagingEnabled is YES
source share