1

I tried to find out any way to figure out how to know the visibility of the tab bar, but not getting the exact answer.

Please let me know If you have got any idea.

I got some answer like checking the visibility by using the viewDidAppear and viewDidDisappear method of the tab bar controller sub class, but I want to know a genuine answer. Thanks

Gopal Devra
  • 787
  • 9
  • 15

1 Answers1

1

Swift solution:

if let tabBarCont = tabBarController {
   if tabBarCont.tabBar.isHidden == true {
      //do some stuff
    }
}
rmaddy
  • 314,917
  • 42
  • 532
  • 579
Dejan Zuza
  • 359
  • 1
  • 6
  • 14