Bearbeiten

Freigeben über


UIView.GestureRecognizerShouldBegin(UIGestureRecognizer) Method

Definition

Determines if the specified gesture recognizers should be allowed to track touch events.

[Foundation.Export("gestureRecognizerShouldBegin:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 6, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool GestureRecognizerShouldBegin (UIKit.UIGestureRecognizer gestureRecognizer);
abstract member GestureRecognizerShouldBegin : UIKit.UIGestureRecognizer -> bool
override this.GestureRecognizerShouldBegin : UIKit.UIGestureRecognizer -> bool

Parameters

gestureRecognizer
UIGestureRecognizer

The gesture recognizer that is trying to transitioning out of the UIGestureRecognizerState's Possible state.

Returns

Attributes

Remarks

Override this method if your application handles touches directly, it controls whether an associated UIGestureRecognizer should execute or not.

Applies to