UIScrollView.TouchesShouldCancelInContentView(UIView) Method

Definition

This method controls if the touches of a content subview should be cancelled, which would allow dragging to start.

[Foundation.Export("touchesShouldCancelInContentView:")]
public virtual bool TouchesShouldCancelInContentView (UIKit.UIView view);
abstract member TouchesShouldCancelInContentView : UIKit.UIView -> bool
override this.TouchesShouldCancelInContentView : UIKit.UIView -> bool

Parameters

view
UIView

The view object that was touched.

Returns

true if future touch events to view are to be cancelled. false if view is to receive the touch events.

Attributes

Remarks

This method is called by the UIScrollView after the application user touches the screen but before tracking begins. If not overridden, returns true if the view is a subtype of UIControl, otherwise, it returns false. This method is not called at all if CanCancelContentTouches returns false.

Applies to

See also