Contents

isSelected(forSegment:)

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

Declaration

func isSelected(forSegment segment: Int) -> Bool

Parameters

  • segment:

    The index of the segment whose selection 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 selected; otherwise, false.

See Also

Managing the selected segment