setToolTip(_:forSegment:)
Sets the tooltip for the specified segment.
Declaration
func setToolTip(_ toolTip: String?, forSegment segment: Int)Parameters
- toolTip:
The text of the tooltip you want to display for the segment.
- segment:
The index of the segment whose tooltip you want to set. This method raises an exception (Rangeexception) if the index is out of bounds.
Discussion
Tooltips are currently not displayed.
See Also
Configuring Individual Segments
setLabel(_:forSegment:)label(forSegment:)setImage(_:forSegment:)image(forSegment:)setImageScaling(_:forSegment:)imageScaling(forSegment:)setWidth(_:forSegment:)width(forSegment:)setEnabled(_:forSegment:)isEnabled(forSegment:)setMenu(_:forSegment:)menu(forSegment:)toolTip(forSegment:)setTag(_:forSegment:)tag(forSegment:)