swift hide navigation bar

Solutions on MaxInterview for swift hide navigation bar by the best coders in the world

showing results for - "swift hide navigation bar"
Paulina
23 Jul 2018
1override func viewWillAppear(_ animated: Bool) {
2    super.viewWillAppear(animated)
3    navigationController?.setNavigationBarHidden(true, animated: animated)
4}
5
6override func viewWillDisappear(_ animated: Bool) {
7    super.viewWillDisappear(animated)
8    navigationController?.setNavigationBarHidden(false, animated: animated)
9}