Class
UIBar Button Item Appearance An object for customizing the appearance of bar button items.
SDKs
iOS 13.0+ Mac Catalyst 13.0+ tvOS 13.0+ Declaration @interface UIBarButtonItemAppearance : NSObject
Overview Use a UIBar Button Item Appearance
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 - init With Style:
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
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.
See Also
Shared Appearance UIBar Appearance
An object for customizing the basic appearance of system bars.