Ivan Ivan - 3 months ago 7
Swift Question

Why I can't see Top bar, after navigationcontroller go back programmatically

I have navigation controller with rootViewController and childViewController.
When I start my app I see Top Bar on my rootViewController. Then I go to childViewController trough segue and than try to return to rootViewController

@IBAction func exitButtonAction(sender: AnyObject) {

but it is start without Top Bar.
I go back programmatically, because on my childViewController Top Bar is hidden.
How can I fix it?


This is a boolean value that can solve what you need: self.navigationController?.navigationBarHidden = true

Set it to true or false when you need to.