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
setLabel(_:forSegment:)setImage(_:forSegment:)image(forSegment:)setImageScaling(_:forSegment:)imageScaling(forSegment:)setWidth(_:forSegment:)width(forSegment:)setEnabled(_:forSegment:)isEnabled(forSegment:)setMenu(_:forSegment:)menu(forSegment:)setToolTip(_:forSegment:)toolTip(forSegment:)setTag(_:forSegment:)tag(forSegment:)