Contents

isEnabledForSegment(at:)

Returns whether the indicated segment is enabled.

Declaration

func isEnabledForSegment(at segment: Int) -> Bool

Parameters

  • 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.

See Also

Managing segment behavior and appearance