How to disable navigation bar in iOS

Arock picture Arock · Feb 27, 2014 · Viewed 7.6k times · Source

I would like to disable the navigation bar while adding a child view and enable it again once I remove the child view. How to do that. A similar action when an action sheet is shown.

Answer

Segev picture Segev · Nov 24, 2014

In Swift:

self.navigationController?.setNavigationBarHidden(true, animated: true)