Instance Property

leftBarButtonItems

An array of custom bar button items to display on the left (or leading) side of the navigation bar when the receiver is the top navigation item.

Declaration

@property(nonatomic, copy) NSArray<UIBarButtonItem *> *leftBarButtonItems;

Discussion

This array can contain 0 or more bar items to display on the left (or leading) side of the navigation bar. Items can include fixed-width and flexible-width spaces. If the leftItemsSupplementBackButton property is YES, the items are displayed to the right (or trailing side) of the back button, otherwise the items replace the back button and start at the left (or leading) edge of the bar. Items are displayed left-to-right in the same order as they appear in the array. In a right-to-left user interface, the items are automatically flipped.

If there is not enough room to display all of the items in the array, those that would overlap the title view (if present) or the buttons on the right side of the bar are not displayed.

The first item in the array can also be set using the leftBarButtonItem property.

See Also

Specifying Custom Views

titleView

A custom view displayed in the center of the navigation bar when the receiver is the top item.

leftBarButtonItem

A custom bar button item displayed on the left (or leading) edge of the navigation bar when the receiver is the top navigation item.

rightBarButtonItems

An array of custom bar button items to display on the right (or trailing) side of the navigation bar when the receiver is the top navigation item.

rightBarButtonItem

A custom bar button item displayed on the right (or trailing) edge of the navigation bar when the receiver is the top navigation item.

- setLeftBarButtonItems:animated:

Sets the left bar button items, optionally animating the transition to the new items.

- setLeftBarButtonItem:animated:

Sets the custom bar button item, optionally animating the transition to the new item.

- setRightBarButtonItems:animated:

Sets the right bar button items, optionally animating the transition to the new items.

- setRightBarButtonItem:animated:

Sets the custom bar button item, optionally animating the transition to the view.