UIGestureRecognizer.CanBePreventedByGestureRecognizer 方法

定义

重写时,允许指定的 UIGestureRecognizer 阻止此 UIGestureRecognizer 识别手势。

[Foundation.Export("canBePreventedByGestureRecognizer:")]
public virtual bool CanBePreventedByGestureRecognizer (UIKit.UIGestureRecognizer preventingGestureRecognizer);
abstract member CanBePreventedByGestureRecognizer : UIKit.UIGestureRecognizer -> bool
override this.CanBePreventedByGestureRecognizer : UIKit.UIGestureRecognizer -> bool

参数

preventingGestureRecognizer
UIGestureRecognizer

返回

如果设置为 true,则表示阻止ingGestureRecognizer 会阻止接收方识别其手势。 否则设置为 false

属性

适用于