Instance Property

backBarButtonItem

The bar button item to use when a back button is needed on the navigation bar.

Declaration

@property(nonatomic, strong) UIBarButtonItem *backBarButtonItem;

Discussion

When this navigation item is immediately below the top item in the stack, the navigation controller derives the back button for the navigation bar from this navigation item. When this property is nil, the navigation item uses the value in its title property to create an appropriate back button. If you want to specify a custom image or title for the back button, you can assign a custom bar button item (with your custom title or image) to this property instead. When configuring your bar button item, do not assign a custom view to it; the navigation item ignores custom views in the back bar button anyway.

The default value of this property is nil.

See Also

Getting and Setting Properties

prompt

A single line of text displayed at the top of the navigation bar.

hidesBackButton

A Boolean value that determines whether the back button is hidden.

setHidesBackButton:animated:

Sets whether the back button is hidden, optionally animating the transition.

leftItemsSupplementBackButton

A Boolean value indicating whether the left items are displayed in addition to the back button.