I try do it in willMove method but get bug when I break gesture(swipe to back VC)
override func willMove(toParent parent: UIViewController?) {
super.willMove(toParent: parent)
self.tabBarController?.tabBar.isHidden = true
}
I try do it in willMove method but get bug when I break gesture(swipe to back VC)
override func willMove(toParent parent: UIViewController?) {
super.willMove(toParent: parent)
self.tabBarController?.tabBar.isHidden = true
}
Use below method in ViewDidLoad() of ViewController(where you are going)
self.tabBarController?.tabBar.isHidden = true
and in ViewDidDisappear()
self.tabBarController?.tabBar.isHidden = false
In your current view controller:
In viewDidDisappear
:
self.tabBarController?.tabBar.isHidden = true
In ViewDidAppear
:
self.tabBarController?.tabBar.isHidden = false