The state of the control, specified as a bitmask value.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
The value of this property is a bitmask of the constants in the
UIControl type. A control can be in more than one state at a time. For example, it can be focused and highlighted at the same time. You can also get the values for individual states using the properties of this class.