Instance Property


The navigation bar’s delegate object.


weak var delegate: UINavigationBarDelegate? { get set }


The delegate must conform to the UINavigationBarDelegate protocol. The default value is nil.

If the navigation bar was created by a navigation controller and is being managed by that object, you must not change the value of this property. A navigation controller acts as the delegate for the navigation bar it creates.

See Also

Responding to Navigation Bar Changes

protocol UINavigationBarDelegate

The UINavigationBarDelegate protocol defines optional methods that a UINavigationBar delegate should implement to update its views when items are pushed and popped from the stack. The navigation bar represents only the bar at the top of the screen, not the view below. It’s the application’s responsibility to implement the behavior when the top item changes.