A Boolean value indicating whether the control is enabled.
- iOS 2.0+
- tvOS 9.0+
Set the value of this property to
true to enable the control or
false to disable it. An enabled control is capable of responding to user interactions, whereas a disabled control ignores touch events and may draw itself differently. Setting this property to
false adds the
disabled flag to the control’s
state bitmask; enabling the control again removes that flag.
The default value of this property is
true for a newly created control. You can set a control’s initial enabled state in your storyboard file.