Instance Property

hidesBackButton

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

Declaration

var hidesBackButton: Bool { get set }

Discussion

When set to true, the back button is hidden when this navigation item is the top item. This is true regardless of the value in the leftItemsSupplementBackButton property. When set to false, the back button is shown if it is still present. (It can be replaced by values in either the leftBarButtonItem or leftBarButtonItems properties.) The default value is false.

See Also

Getting and Setting Properties

var prompt: String?

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

var backBarButtonItem: UIBarButtonItem?

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

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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software