Instance Method

setToolbarHidden:animated:

Changes the visibility of the navigation controller’s built-in toolbar.

Declaration

- (void)setToolbarHidden:(BOOL)hidden animated:(BOOL)animated;

Parameters

hidden

Specify YES to hide the toolbar or NO to show it.

animated

Specify YES if you want the toolbar to be animated on or off the screen.

Discussion

You can use this method to animate changes to the visibility of the built-in toolbar.

Calling this method with the animated parameter set to NO is equivalent to setting the value of the toolbarHidden property directly. The toolbar simply appears or disappears depending on the value in the hidden parameter.

See Also

Configuring Custom Toolbars

toolbar

The custom toolbar associated with the navigation controller.

toolbarHidden

A Boolean indicating whether the navigation controller’s built-in toolbar is visible.

UINavigationControllerHideShowBarDuration

This variable specifies the duration when animating the navigation bar. Note that this is a constant value, so it cannot be set.