May 2011
Beginner
834 pages
25h 19m
English
The scroll view’s delegate (adopting the UIScrollViewDelegate protocol) receives lots of messages that can help you track what the scroll view is up to:
scrollViewDidScroll:
scrollViewDidEndScrollingAnimation:
scrollViewWillBeginDragging:, scrollViewDidEndDragging:willDecelerate:
willDecelerate is NO and the scroll is over. If the user lets go of the scroll view while the finger is moving, or if paging is turned on and the user has not paged perfectly already, willDecelerate is YES and we proceed to the delegate messages reporting deceleration.
scrollViewWillBeginDecelerating:, scrollViewDidEndDecelerating:
scrollViewDidEndDragging:willDecelerate: arrives with a value of YES. When scrollViewDidEndDecelerating:Read now
Unlock full access