nick shmick nick shmick - 4 months ago 15
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..

tnx

Answer

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