TabBar embed in Navigation Controller, Back button does not disappear

I have my views organized as below:


Nav Contr -> View Contr -> Tab Contr -> View Contr

-> View Contr

I try to add the Back button adding in each View Controller and also the TabViewController a combination and at some point even all of the commands:


self.navigationItem.leftBarButtonItem = nil 
self.navigationItem.hidesBackButton = true 
self.navigationItem.backBarButtonItem = nil 
self.navigationItem.setHidesBackButton(true, animated: false) 
self.navigationItem.setLeftBarButtonItem(nil, animated: false)


The best result I had was where the back arrow disappeared and the buttoned seemed not to be functional however I cannot make the world BACK go away.


The very little code and the application is setup in swift 1.2


If you google for "TabBar embed in Navigation Controller, Back button does not disappear" you will find my post on stackoverflow where I post screenshots and my github with my code. I had to remove the link from here as otherwise the post would never get reviewed.


Thanks in advance!

You shouldn't push UITabBarController in navigation stack. It should be used as a root viewcontroller of the application. Maybe you should use a custom container controller instead of a tabbar controller.

TabBar embed in Navigation Controller, Back button does not disappear
 
 
Q