Contents

isEnabled(forSegment:)

Returns a Boolean value indicating whether the specified segment is enabled.

Declaration

func isEnabled(forSegment segment: Int) -> Bool

Parameters

  • segment:

    The index of the segment whose enabled state you want to get. This method raises an exception (Rangeexception) if the index is out of bounds.

Return Value

true if the segment is enabled; otherwise, false.

See Also

Configuring Individual Segments