Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 391
nick shmick Avatar asked Mar 17 '23 14:03

nick shmick


1 Answers

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

like image 185
aplr Avatar answered Mar 20 '23 03:03

aplr