UIView.GestureRecognizerShouldBegin(UIGestureRecognizer) 方法

定义

确定是否应允许指定的手势识别器跟踪触摸事件。

[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

参数

gestureRecognizer
UIGestureRecognizer

尝试从 的可能状态转换 UIGestureRecognizerState的手势识别器。

返回

属性

注解

如果应用程序直接处理触摸,则重写此方法,它会控制是否应执行关联的 UIGestureRecognizer

适用于