UIView.UserInteractionEnabled Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.