isEnabledForSegment(at:)
Returns whether the indicated segment is enabled.
Declaration
func isEnabledForSegment(at segment: Int) -> BoolParameters
- 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.
Return Value
true if the given segment is enabled and false if the segment is disabled. By default, segments are enabled.