自定义UI标签栏
是否有可能以这样的方式拥有一个 UITabBar,使得以下事情成为可能。
- 应用程序打开后,任何选项卡栏项目都不会突出显示(甚至不是第一个)。 (称为主视图)
- 如果选择第一个选项卡栏项目,它将转到第一个视图,依此类推。
- 隐藏某些选项卡栏项目的 UITabbar。
- 允许任何子视图返回主视图。
任何有关如何执行此操作的提示将不胜感激。
谢谢
Is it possible to have a UITabBar in such a way that the following things are possible.
- Once the app opens, none of the Tabbar items are highlighted (not even the first one). (call it homeview)
- if the first Tabbar item is selected it goes to the first view and so on.
- Hide the UITabbar for certain Tabbar items.
- Allow any subview to go back to homeview.
Any tips on how to go about doing this will be appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我有类似的事情要做:
为此,我务实地创建了 UITabBar 并将其推送到导航堆栈上,并从 UITabBar 中的控制器将其他视图推送到堆栈上。
要导航到根控制器,您可以使用以下命令:
I had a similar thing to do:
For this to work I pragmatically created the UITabBar and pushed it on the navigation stack and from the controllers in the UITabBar I pushed other views on the stack.
To navigate to the root controller you can use this: