setContentOffset(_:forSegmentAt:)
Adjusts the offset for drawing the content (image or text) of the specified segment.
Declaration
func setContentOffset(_ offset: CGSize, forSegmentAt segment: Int)Parameters
- offset:
The offset (as a Cgsize type) from the origin of the segment at which to draw the segment’s content. The default offset is (0,0).
- segment:
An index number identifying a segment in the control. It must be a number between 0 and the number of segments (Numberofsegments) minus 1; the segmented control pins values exceeding this upper range to the last segment.