Class

UITabBarItemStateAppearance

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

Declaration

@interface UITabBarItemStateAppearance : NSObject

Overview

Use a UITabBarItemStateAppearance object to customize the appearance of your tab bar items and the badges they display. Don't create UITabBarItemStateAppearance objects yourself. Instead, create a UITabBarItemAppearance object and use its properties to fetch the appearance attributes for tab bar items in a particular state. For example, to set the attributes for items in the normal state, configure the object in the normal property.

Topics

Configuring the Item's Title

titleTextAttributes

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

titlePositionAdjustment

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

Tinting the Item's Icon

iconColor

The color of item icons.

Configuring the Badge Appearance

badgeTextAttributes

String attributes to apply to the text of the item's badge.

badgeBackgroundColor

The background color of the badge.

badgeTitlePositionAdjustment

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

badgePositionAdjustment

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

Relationships

Inherits From

See Also

Tab Bar Appearance

UITabBarAppearance

An object for customizing the appearance of a tab bar.

UITabBarItemAppearance

An object for customizing the appearance of tab bar items.