Why UINavigationbar hide when push to other controller

I have a initial controller in which I have hidden the navigation controller and when I have switch to other view controller then the navigation bar is still hides while I have unhide the navigation bar in both i.e. in initial view controller's viewWillAppear as well as in next view controller's viewWillDisappear.

Also it shows only in 9.x iOS version devices.


It shows like this-

I have unhide the navigation bar in both i.e. in initial view controller's viewWillAppear as well as in next view controller's viewWillDisappear.


Hope I follow you properly, but shouldn't you :

unhide the navigation bar in both i.e.

in initial view controller's viewWillDisappear

as well as in next view controller's viewWillAppear

Thanks for the suggestion but this is also not working.

Could you post the code of the 2 controllers, that will be easier.

There is few line that I have do- In initial view controller:- override func viewWillAppear(_ animated: Bool) { self.navigationController?.isNavigationBarHidden = true } When Pushing to other controller:- self.navigationController?.isNavigationBarHidden = false Other view controller:- override func viewWillAppear(_ animated: Bool) { self.navigationController?.isNavigationBarHidden = false } But this is happing only in iOS 9.x versions devices.

Why UINavigationbar hide when push to other controller
 
 
Q