How to hide tab bar with animation in iOS?

后端 未结 15 1900
夕颜
夕颜 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

    Unfortunately, I can't comment on HixField's answer because I don't have enough reputation, so I have to leave this as a separate answer.

    His answer is missing the computed property for movedFrameView, which is:

    var movedFrameView:CGRect? {
      get { return objc_getAssociatedObject(self, &AssociatedKeys.movedFrameView) as? CGRect }
      set { objc_setAssociatedObject(self, &AssociatedKeys.movedFrameView, newValue, .OBJC_ASSOCIATION_COPY) }
    }
    

提交回复
热议问题