Share via


UIBarButtonItem.Enabled Property

Definition

Allows control over whether a UIBarButtonItem is enabled or disabled.

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public override bool Enabled { [Foundation.Export("isEnabled")] get; [Foundation.Export("setEnabled:")] set; }
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
[<get: Foundation.Export("isEnabled")>]
[<set: Foundation.Export("setEnabled:")>]
member this.Enabled : bool with get, set

Property Value

True if the UIBarButtonItem is enabled. False if it is disabled.

Attributes

Remarks

If a UIBarButtonItem is enabled, it can be interacted with. If it is disabled, it still appears, but cannot be interacted with.

Applies to