setEnabled(_:forSegment:)
Sets the enabled state of the specified segment
Declaration
func setEnabled(_ enabled: Bool, forSegment segment: Int)Parameters
- enabled:
- segment:
The index of the segment you want to enable or disable. 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:)isEnabled(forSegment:)setMenu(_:forSegment:)menu(forSegment:)setToolTip(_:forSegment:)toolTip(forSegment:)setTag(_:forSegment:)tag(forSegment:)