隐藏的UITabBar
我正在编写一个具有 5 项 TabBar 的应用程序。启动时,我希望应用程序显示第一个项目的视图内容,而不显示选项卡栏。我想要一个隐藏按钮覆盖全屏,这样当我点击任意位置时,TabBar 就会从底部弹出。然后我希望它在几秒钟后再次隐藏起来。
我想如果它会在预定时间范围后隐藏自己,那么在启动时不显示 TabBar 并不重要。
我是编程新手,我很难实现这一点。我看过类似问题的建议,但它们似乎没有帮助。有什么建议可以实现这一点吗?
I'm writing an app that has a 5 item TabBar. When launching, I want the app to show the contents of the view for the first item, without showing the Tabbar. I want a hidden button to cover the full screen so that when I tap anywhere the TabBar pops up from the bottom. I then want it to hide itself again after a few seconds.
I guess it isn't vital that it not show the TabBar on launch if it will hide itself after the predetermined time frame.
I'm new to programming, and I'm having difficulty making this happen. I've looked at the suggestions for similar questions, but they don't seem to help. Any suggestions for making this happen?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看示例代码“The Elements”。当您选择一个元素时,它会隐藏选项卡栏。
Look at the example code "The Elements". It hides the tab bar when you select an element.