Class

UITabBarItemAppearance

An object for customizing the appearance of tab bar items.

Declaration

@interface UITabBarItemAppearance : NSObject

Overview

Use a UITabBarItemAppearance object to customize the appearance of a tab bar item in each of its possible states. You can customize the appearance differently for each state. For example, you might apply different colors to the tab bar item's icon in the normal and selected states.

Topics

Creating a Tab Bar Item Appearance Object

- initWithStyle:

Creates an appearance object with appropriate default values for a tab bar, displaying its items with the specified layout style.

- init

Creates an appearance object with default values for a stacked tab bar item.

Resetting the Appearance Properties

- configureWithDefaultForStyle:

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

UITabBarItemAppearanceStyle

Constants indicating the layout of a tab bar item's content.

Configuring Attributes for Different Item States

normal

The appearance data to apply to the tab bar item when it is enabled, unselected, and not the focused item.

selected

The appearance data to apply to the tab bar item when it is selected.

disabled

The appearance data to apply to the tab bar item when it is disabled.

focused

The appearance data to apply to the tab bar item when it is focused.

Instance Methods

Relationships

Inherits From

See Also

Tab Bar Appearance

UITabBarAppearance

An object for customizing the appearance of a tab bar.

UITabBarItemStateAppearance

A data object containing the specific customizations for tab bar items in a particular state.