UIView.UserInteractionEnabled Property

Definition

Determines whether input events are processed by this view.

[get: Foundation.Export("isUserInteractionEnabled")]
[set: Foundation.Export("setUserInteractionEnabled:")]
public virtual bool UserInteractionEnabled { get; 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