How to hide tab bar with animation in iOS?

后端 未结 15 1897
夕颜
夕颜 2020-11-30 19:20

So I have a button that is connected to a IBAction. When I press the button I want to hide the tab bar in my iOS app with a animation. This [self setTabBarHidden:hidde

15条回答
  •  南方客
    南方客 (楼主)
    2020-11-30 20:24

    Try to set the frame of the tabBar in animation. See this tutorial.

    Just be aware, it's bad practice to do that, you should set show/hide tabBar when UIViewController push by set the property hidesBottomBarWhenPushed to YES.

提交回复
热议问题