Search code examples
iosobjective-cswiftuinavigationcontrolleruitabbarcontroller

Hide Boom Bar on Push is the cause of the bug Navigation Bar


I have a strange behaviour when I push detailed View Controller.

enter image description here

I have such a hierarchy View Controllers, all controllers are configured by default.

View hierarchy

Only last UIViewController set hidesBottomBarWhenPushed = true

Here is a test project in google drive. I have tested XCode 8, iOS 10, Simulator iPhone SE

Thanks for any help!


Solution

  • following snippet may resolve your issue

    self.navigationController?.navigationBar.isTranslucent = false
    

    put above code to your viewDidLoad of TableViewController

    if you want navigationBar with isTranslucent = true you can change the window backgroundColor colour as below

    self.window?.backgroundColor = UIColor.white