Instance Method

initWithCustomView:

Initializes a new item using the specified custom view.

Declaration

- (instancetype)initWithCustomView:(UIView *)customView;

Parameters

customView

A custom view representing the item.

Return Value

Newly initialized item with the specified properties.

Discussion

The bar button item created by this method does not call the action method of its target in response to user interactions. Instead, the bar button item expects the specified custom view to handle any user interactions and provide an appropriate response.

See Also

Initializing an Item

- initWithBarButtonSystemItem:target:action:

Initializes a new item containing the specified system item.

- initWithImage:style:target:action:

Initializes a new item using the specified image and other properties.

- initWithTitle:style:target:action:

Initializes a new item using the specified title and other properties.

- initWithImage:landscapeImagePhone:style:target:action:

Initializes a new item using the specified images and other properties.

- init

Initializes the bar button item to its default state.