UIScrollViewDelegate.WillEndDragging(UIScrollView, CGPoint, CGPoint) Method

Definition

Called when the user finishes scrolling the content.

[Foundation.Export("scrollViewWillEndDragging:withVelocity:targetContentOffset:")]
public virtual void WillEndDragging (UIKit.UIScrollView scrollView, CoreGraphics.CGPoint velocity, ref CoreGraphics.CGPoint targetContentOffset);
abstract member WillEndDragging : UIKit.UIScrollView * CoreGraphics.CGPoint *  -> unit
override this.WillEndDragging : UIKit.UIScrollView * CoreGraphics.CGPoint *  -> unit

Parameters

scrollView
UIScrollView

Scroll view where user touch ended.

velocity
CGPoint

The velocity of the scroll view (in points) when the touch ended.

targetContentOffset
CGPoint

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

Attributes

Remarks

This method isn't called when the scroll view's PagingEnabled property is true.

The ref parameter targetContentOffset can be modified in this method to adjust where the scroll view ends its scrolling animation.

Applies to