Instance Method

setNavigationBarHidden:animated:

Sets whether the navigation bar is hidden.

Declaration

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

Parameters

hidden

Specify YES to hide the navigation bar or NO to show it.

animated

Specify YES if you want to animate the change in visibility or NO if you want the navigation bar to appear immediately.

Discussion

For animated transitions, the duration of the animation is specified by the value in the UINavigationControllerHideShowBarDuration constant.

See Also

Configuring Navigation Bars

navigationBar

The navigation bar managed by the navigation controller.

Customizing Your App’s Navigation Bar

Create custom titles, prompts, and buttons in your app’s navigation bar.