Class

UIBarAppearance

An object for customizing the basic appearance of system bars.

Declaration

@interface UIBarAppearance : NSObject

Overview

A UIBarAppearance object contains the common traits shared by navigation bars, tab bars, and toolbars. When configuring a specific type of bar, you usually instantiate the appropriate bar appearance subclass. However, you may also create a UIBarAppearance object, configure its properties, and use it to create new bar appearance objects in your app.

Topics

Creating a Custom Bar Appearance

- initWithIdiom:

Creates a new bar appearance object that targets the specified idiom.

- initWithBarAppearance:

Creates a new bar appearance object by copying relevant data from the specified appearance object.

- init

Creates a new bar appearance object containing default values.

Resetting the Appearance Properties

- configureWithDefaultBackground

Configures the bar appearance object with default background and shadow values.

- configureWithOpaqueBackground

Configures the bar appearance object with a set of opaque colors that are appropriate for the current theme.

- configureWithTransparentBackground

Configures the bar appearance object with a transparent background and no shadow.

Configuring the Background Appearance

backgroundEffect

The blur effect to apply to the bar's background.

backgroundColor

The background color of the bar.

backgroundImage

The image to display on top of the bar's background color.

backgroundImageContentMode

The content mode to use when displaying the bar's background image.

Configuring the Shadow Appearance

shadowColor

The color to apply to the bar's custom or default shadow.

shadowImage

The image to use for the bar's shadow.

Getting the Supported Idiom

idiom

The idiom targeted by this bar appearance object.

Instance Methods

Relationships

Inherits From

See Also

Shared Appearance

UIBarButtonItemAppearance

An object for customizing the appearance of bar button items.

UIBarButtonItemStateAppearance

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