How to Hide Tab Bar Controller?

后端 未结 10 1700
猫巷女王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:24

    If using Storyboards you can simply uncheck a checkbox in your ViewController's Attribute Inspector. It's called "Hide Bottom Bar on Push". Very convenient indeed, and no need to handle the showing of the tabBar again after navigating back from your tabBar-less viewController. I don't know in which XCode-version this was introduced, but it's there for XCode 6 + .

提交回复
热议问题