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
YES to select it or
NO 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
NO for a newly created control. You can set a control’s initial selected state in your storyboard file.