A Boolean value indicating whether the control is in the selected state.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Set the value of this property to
true to select it or
false to deselect it. Most controls do not modify their appearance or behavior when selected, but some do. For example, the
UISegmented class tracks whether a segment is selected and draws it differently when it is.
The default value of this property is
false for a newly created control. You can set a control’s initial selected state in your storyboard file.