Instance Property

delegate

The delegate of the scroll-view object.

Declaration

weak var delegate: UIScrollViewDelegate? { get set }

Discussion

The delegate must adopt the UIScrollViewDelegate protocol. The UIScrollView class, which does not retain the delegate, invokes each protocol method the delegate implements.

See Also

Responding to Scroll View Interactions

protocol UIScrollViewDelegate

The methods declared by the UIScrollViewDelegate protocol allow the adopting delegate to respond to messages from the UIScrollView class and thus respond to, and in some affect, operations such as scrolling, zooming, deceleration of scrolled content, and scrolling animations.