Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to hide the iOS nav bar on particular view

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!

like image 834
Ryan Coolwebs Avatar asked Jun 18 '13 04:06

Ryan Coolwebs


2 Answers

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
        }
like image 147
abdul sathar Avatar answered Oct 02 '22 02:10

abdul sathar


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];
like image 23
Jitendra Avatar answered Oct 02 '22 02:10

Jitendra