I have a tabBar
+ NavigationViewController
. The Tab bar has collection view with cells(Say view1) and with cells a push seague is implemented to another view(Say view2).
In view2 I want to have a navBar
but no tab bar.
I tried
self.tabBarController?.tabBar.hidden = true
,
it worked fine for view2 but when I went back to view1 by back button the tab was still hidden( even after in view1 class I added self.tabBarController?.tabBar.hidden = false
in viewDidLoad func).
How can i make the tab bar reappear in view1?
I'm working in swift.
Make sure to check this option only on the ViewController whose tab bar you wish to be hidden.
Thanks to iHarshil for the suggestion.