Reputation: 1631
Now I'm pretty sure there is a way to do this as i saw this post earlier UINavigationabar not hiding but I just want confirmation so i can prove to my developer there is a way to hide the footer nav buttons on a particular view.
I want to hide the buttons on the home view and use big custom buttons instead - he tells me it isn't possible. Seeking a second opinion here.
THanks!
Upvotes: 6
Views: 9038
Reputation: 2396
for Disable NavigationBar particular view in Swift
override func viewWillAppear(animated: Bool)
{
self.navigationController?.navigationBarHidden = true
}
for Enable NavigationBar particular view in Swift
override func viewWillAppear(animated: Bool)
{
self.navigationController?.navigationBarHidden = false
}
Upvotes: 25
Reputation: 53
Anybody that wants it for Swift
language the line would be
self.navigationController?.navigationBarHidden = true
This will hide it on all viewControllers
Upvotes: 3
Reputation: 5081
If you want to Hide Navigation Bar used below line
[[self navigationController] setNavigationBarHidden:YES animated:YES];
If you want to Show Navigation Bar used below line
[[self navigationController] setNavigationBarHidden:NO animated:YES];
Upvotes: 9