Instance Method

initWithBarButtonSystemItem:target:action:

Initializes a new item containing the specified system item.

Declaration

- (instancetype)initWithBarButtonSystemItem:(UIBarButtonSystemItem)systemItem target:(id)target action:(SEL)action;

Parameters

systemItem

The system item to use as the first item on the bar. One of the constants defined in UIBarButtonSystemItem.

target

The object that receives the action message.

action

The action to send to target when this item is selected.

Return Value

A newly initialized item containing the specified system item. The item’s target is nil.

See Also

Initializing an Item

- initWithCustomView:

Initializes a new item using the specified custom view.

- 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.