Instance Method

titleTextAttributesForState:

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

Declaration

- (NSDictionary<NSAttributedStringKey, id> *)titleTextAttributesForState:(UIControlState)state;

Parameters

state

A control state.

Return Value

The text attributes of the title for state.

Discussion

For more details, see setTitleTextAttributes:forState:

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.

- contentPositionAdjustmentForSegmentType:barMetrics:

Returns the positioning offset for a given segment 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.

- setTitleTextAttributes:forState:

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