Class

UIBarButtonItemStateAppearance

A data object containing the specific customizations for a bar button item in a particular state.

Declaration

@interface UIBarButtonItemStateAppearance : NSObject

Overview

Use a UIBarButtonItemStateAppearance object to customize the title and background image of your bar button items. Don't create UIBarButtonItemStateAppearance objects yourself. Instead, create a UIBarButtonItemAppearance object and use its properties to fetch the appearance attributes for the button in a particular state. For example, to set the button's attributes when it is in the normal state, configure the object in the normal property.

Topics

Configuring the Title

titleTextAttributes

String attributes to apply to the text of the bar button item's title.

titlePositionAdjustment

The additional amount by which to offset the title horizontally and vertically.

Configuring the Background Appearance

backgroundImage

A background image to display around the button

backgroundImagePositionAdjustment

The distance, in points, by which to offset the background image horizontally and vertically.

Relationships

Inherits From

See Also

Shared Appearance

UIBarAppearance

An object for customizing the basic appearance of system bars.

UIBarButtonItemAppearance

An object for customizing the appearance of bar button items.