Sets the title of a segment.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
A string to display in the segment as its title.
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.
A segment can only have an image or a title; it can’t have both. There is no default title.