之前的代码中将self.hidesBottomBarWhenPushed = true放在了ViewController基类的下列方法中:
override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?)
required init?(coder aDecoder: NSCoder)
在不需要隐藏tabbar的VC的init方法中写入self.hidesBottomBarWhenPushed = false
出现了一个问题:从分享出去的H5页面跳回App 中的TabA(hidesBottomBarWhenPushed==false)时,如果当前显示画面B的hidesBottomBarWhenPushed == true,那么tabbar就消失了。
将self.hidesBottomBarWhenPushed = true移到自定义的NavigationController基类中重写的pushViewController方法中,问题解决。