How to Hide Tab Bar Controller?

后端 未结 10 1696
猫巷女王i
猫巷女王i 2020-12-05 00:43

How to Hide Tab Bar Controller ? I want to hide the Tab Bar controller with double tap on UIImageView.

10条回答
  •  醉酒成梦
    2020-12-05 01:03

    Use Tap Gesture Recognizer to detect double taps on a UIImageView. Then invoke a method on detecting the double double tap. Add the following line of code in that method.

    self.tabBarController.tabBar.hidden=YES;
    

    Hope this helps.

提交回复
热议问题