Instance Property

items

An array of navigation items managed by the navigation bar.

Declaration

@property(nonatomic, copy) NSArray<UINavigationItem *> *items;

Discussion

The bottom item is at index 0, the back item is at index n-2, and the top item is at index n-1, where n is the number of items in the array.

See Also

Pushing and Popping Items

- pushNavigationItem:animated:

Pushes the given navigation item onto the navigation bar's stack and updates the UI.

- popNavigationItemAnimated:

Pops the top item from the navigation bar's stack and updates the UI.

- setItems:animated:

Replaces the navigation items currently managed by the navigation bar with the specified items.

topItem

The navigation item at the top of the navigation bar’s stack.

backItem

The navigation item that is immediately below the topmost item on navigation bar’s stack.