Instance Method

scrollViewDidEndDragging:willDecelerate:

Tells the delegate when dragging ended in the scroll view.

Declaration

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate;

Parameters

scrollView

The scroll-view object that finished scrolling the content view.

decelerate

YES if the scrolling movement will continue, but decelerate, after a touch-up gesture during a dragging operation. If the value is NO, scrolling stops immediately upon touch-up.

Discussion

The scroll view sends this message when the user’s finger touches up after dragging content. The decelerating property of UIScrollView controls deceleration.

See Also

Responding to Scrolling and Dragging

- scrollViewDidScroll:

Tells the delegate when the user scrolls the content view within the receiver.

- scrollViewWillBeginDragging:

Tells the delegate when the scroll view is about to start scrolling the content.

- scrollViewWillEndDragging:withVelocity:targetContentOffset:

Tells the delegate when the user finishes scrolling the content.

- scrollViewShouldScrollToTop:

Asks the delegate if the scroll view should scroll to the top of the content.

- scrollViewDidScrollToTop:

Tells the delegate that the scroll view scrolled to the top of the content.

- scrollViewWillBeginDecelerating:

Tells the delegate that the scroll view is starting to decelerate the scrolling movement.

- scrollViewDidEndDecelerating:

Tells the delegate that the scroll view has ended decelerating the scrolling movement.