I\'m using a storyboard and I\'m trying to hide a top bar of my main navigation controller when a certain button is pressed (or function is called). I know I have to initial
in swift 4:
self.navigationController!.navigationBar.isHidden = true
something like this:
override func viewDidLoad() { super.viewDidLoad() self.navigationController!.navigationBar.isHidden = true }