Ivan Ivan - 1 year ago 76
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?

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download