Edytuj

Udostępnij za pośrednictwem


UIView.UserInteractionEnabled Property

Definition

Determines whether input events are processed by this view.

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

Property Value

Attributes

Remarks

This property is used to control whether input events are delivered to the view. By default all views receive events.

During animations, UIKit will disable event delivery to your view unless you pass the UIViewAnimationOptions.AllowUserInteraction flag to your animation function.

Applies to