Instance Method


Overridden by subclasses to customize the default behavior when a finger touches down in displayed content.


func touchesShouldBegin(_ touches: Set<UITouch>, with event: UIEvent?, in view: UIView) -> Bool



A set of UITouch instances that represent the touches for the starting phase of the event represented by event.


An object representing the event to which the touch objects in touches belong.


The subview in the content where the touch-down gesture occurred.

Return Value

Return false if you don’t want the scroll view to send event messages to view. If you want view to receive those messages, return true (the default).


The default behavior of UIScrollView is to invoke the UIResponder event-handling methods of the target subview that the touches occur in.

See Also

Managing Touches

func touchesShouldCancel(in: UIView) -> Bool

Returns whether to cancel touches related to the content subview and start dragging.

var canCancelContentTouches: Bool

A Boolean value that controls whether touches in the content view always lead to tracking.

var delaysContentTouches: Bool

A Boolean value that determines whether the scroll view delays the handling of touch-down gestures.

var directionalPressGestureRecognizer: UIGestureRecognizer

The underlying gesture recognizer for directional button presses.