Enables the specified segment.
SDKs
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- UIKit
Declaration
Parameters
enabled
true
to enable the specified segment orfalse
to disable the segment. By default, segments are enabled.segment
An index number identifying a segment in the control. It must be a number between 0 and the number of segments (
number
) minus 1; values exceeding this upper range are pinned to it.Of Segments