Ryan Coolwebs
Ryan Coolwebs

Reputation: 1631

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!

Upvotes: 6

Views: 9038

Answers (4)

abdul sathar
abdul sathar

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

Tekie_G
Tekie_G

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

Milap Kundalia
Milap Kundalia

Reputation: 1606

self.navigationController.navigationBar.hidden=YES;

Upvotes: 3

Jitendra
Jitendra

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

Related Questions