setTag(_:forSegment:)
Sets the tag for the specified segment.
Declaration
func setTag(_ tag: Int, forSegment segment: Int)Parameters
- tag:
The tag of the segment.
- segment:
The index of the segment whose tool tag you want to set. This method raises an exception (Rangeexception) if the index is out of bounds.
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:)setToolTip(_:forSegment:)toolTip(forSegment:)tag(forSegment:)