Instance Method

contentPositionAdjustmentForSegmentType:barMetrics:

Returns the positioning offset for a given segment and bar metrics.

Declaration

- (UIOffset)contentPositionAdjustmentForSegmentType:(UISegmentedControlSegment)leftCenterRightOrAlone barMetrics:(UIBarMetrics)barMetrics;

Parameters

leftCenterRightOrAlone

An identifier for a segment.

barMetrics

Bar metrics.

Return Value

The content positioning offset for the segment identified by leftCenterRightOrAlone and barMetrics.

Discussion

See Also

Customizing Appearance

- backgroundImageForState:barMetrics:

Returns the background image for a given state and bar metrics.

- setBackgroundImage:forState:barMetrics:

Sets the background image for a given state and bar metrics.

- setContentPositionAdjustment:forSegmentType:barMetrics:

Returns the content positioning offset for a given segment and bar metrics.

- dividerImageForLeftSegmentState:rightSegmentState:barMetrics:

Returns the divider image used for a given combination of left and right segment states and bar metrics.

- setDividerImage:forLeftSegmentState:rightSegmentState:barMetrics:

Sets the divider image used for a given combination of left and right segment states and bar metrics.

- titleTextAttributesForState:

Returns the text attributes of the title for a given control state.

- setTitleTextAttributes:forState:

Sets the text attributes of the title for a given control state.