Contents

label(forSegment:)

Returns the label of the specified segment.

Declaration

func label(forSegment segment: Int) -> String?

Parameters

  • segment:

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

See Also

Configuring Individual Segments