I use UIScrollView to display lots of images. for memory issue, i only load three images at a time. when user flick to the next(or previous), i will shift two images and load a new one.
firstly, i use scrollViewDidEndDecelerating methord to determine whether UIScrollView change to next page , previous page or still the current. But when you flick quickly and continuously, scrollViewDidEndDecelerating methord will not receive any message,which means not be called, while scrollViewDidEndDragging:willDecelerate still receive the message. because the dragging is so quick that the previous decelerating be ignored.
So I wonder where can i know whether the view will change and how to judge the changes when i flick quickly? in scrollViewDidEndDragging:willDecelerate methord or some other ways?
I wouldn’t rely on the
scrollViewDidEndDeceleratingmethod but will implement thescrollViewDidScrollprotocol and update the page when more than 50% of the previous/next page is visible:EDIT
Page control combine with scroll view are well explained in this tut