setEnabled(_:forSegmentAt:)
Enables the segment you specify.
Declaration
func setEnabled(_ enabled: Bool, forSegmentAt segment: Int)Parameters
- enabled:
True to enable the segment you specify or False to disable the segment. True by default.
- segment:
An index number identifying a segment in the control. It must be a number between 0 and the number of segments (Numberofsegments) minus 1; the segmented control pins values exceeding this upper range to the last segment.