Instance Property


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


var backBarButtonItem: UIBarButtonItem? { get set }


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

var prompt: String?

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

var hidesBackButton: Bool

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

func setHidesBackButton(Bool, animated: Bool)

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

var leftItemsSupplementBackButton: Bool

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