Class

UIBarButtonItemAppearance

An object for customizing the appearance of bar button items.

Declaration

@interface UIBarButtonItemAppearance : NSObject

Overview

Use a UIBarButtonItemAppearance object to customize the appearance of a bar button item in each of its possible states. You can customize the appearance differently for different states. For example, you might apply different colors to the button's title in the normal and highlighted states.

Topics

Creating a Bar Button Item Appearance Object

- initWithStyle:

Creates an appearance with default values that are appropriate for the specified button style.

- init

Creates an appearance object with default values that are appropriate for a plain button.

Resetting the Appearance Properties

- configureWithDefaultForStyle:

Configures the bar button item appearance object with appropriate values for the specified button style.

Configuring Attributes for Different Button States

normal

The appearance data to apply to the button when it is in the normal state.

disabled

The appearance data to apply to the button when it is in the disabled state.

highlighted

The appearance data to apply to the button when it is in the highlighted state.

focused

The appearance data to apply to the button when it is focused.

Instance Methods

Relationships

Inherits From

See Also

Shared Appearance

UIBarAppearance

An object for customizing the basic appearance of system bars.

UIBarButtonItemStateAppearance

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