Instance Method

scrollViewWillBeginDragging(_:)

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

Declaration

optional func scrollViewWillBeginDragging(_ scrollView: UIScrollView)

Parameters

scrollView

The scroll-view object that is about to scroll the content view.

Discussion

The delegate might not receive this message until dragging has occurred over a small distance.

See Also

Responding to Scrolling and Dragging

func scrollViewDidScroll(UIScrollView)

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

func scrollViewDidEndDragging(UIScrollView, willDecelerate: Bool)

Tells the delegate when dragging ended in the scroll view.

func scrollViewShouldScrollToTop(UIScrollView) -> Bool

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

func scrollViewDidScrollToTop(UIScrollView)

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

func scrollViewWillBeginDecelerating(UIScrollView)

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

func scrollViewDidEndDecelerating(UIScrollView)

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