Class

CPBarButton

A button in a navigation bar.

Declaration

@interface CPBarButton : NSObject

Topics

Creating a CarPlay Bar Button

- initWithType:handler:

Initializes a bar button with a type and handler.

CPBarButtonType

Types of bar buttons.

Configuring the Button

enabled

A Boolean value that enables and disables the bar button.

image

The image displayed on the bar button.

title

The title displayed on the bar button.

Getting the Button Style

buttonType

The display type for the bar button.

Relationships

Inherits From

Conforms To

See Also

Navigation Bar

CPBarButtonProviding

A protocol indicating that an object provides navigation bar buttons.