UIView.UserInteractionEnabled プロパティ

定義

このビューで入力イベントを処理するかどうかを決定します。

public virtual bool UserInteractionEnabled { [Foundation.Export("isUserInteractionEnabled")] get; [Foundation.Export("setUserInteractionEnabled:")] set; }
member this.UserInteractionEnabled : bool with get, set

プロパティ値

属性

注釈

このプロパティは、入力イベントがビューに配信されるかどうかを制御するために使用されます。 既定では、すべてのビューがイベントを受信します。

アニメーション中、UIKit は を渡さない限り、ビューへのイベント配信を UIViewAnimationOptions無効にします。アニメーション関数への AllowUserInteraction フラグ。

適用対象