Inserts a segment at a specific position in the receiver and gives it a title as content.
- iOS 2.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
A string to use as the segment’s title.
An index number identifying a segment in the control.
segmentmust be a number in the range 0 to the number of segments (
number) inclusive; values exceeding this upper range are pinned to it.
The new segment is inserted just before the designated one.
YESif the insertion of the new segment should be animated, otherwise