Instance Method

scrollViewWillEndDragging:withVelocity:targetContentOffset:

Tells the delegate when the user finishes scrolling the content.

Declaration

- (void)scrollViewWillEndDragging:(UIScrollView *)scrollView withVelocity:(CGPoint)velocity targetContentOffset:(inout CGPoint *)targetContentOffset;

Parameters

scrollView

The scroll-view object where the user ended the touch..

velocity

The velocity of the scroll view (in points) at the moment the touch was released.

targetContentOffset

The expected offset when the scrolling action decelerates to a stop.

Discussion

Your application can change the value of the targetContentOffset parameter to adjust where the scrollview finishes its scrolling animation.

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.

- scrollViewDidEndDragging:willDecelerate:

Tells the delegate when dragging ended in the scroll view.

- 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.