nick shmick nick shmick - 1 year ago 86
Objective-C Question

How to hide UINavigationBar from a UINavigationController?

I have a view controller that is embedded in a UINavigationController,how can I hide the UINavigationBar? I want the navigation functionality but I don't want that bar in the top..


Answer Source

This should work:

[self.navigationController setNavigationBarHidden:YES animated:YES];

to get it back, just call:

[self.navigationController setNavigationBarHidden:NO animated:YES];

source: How to hide the UINavigationBar for my first view

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download