iPhone sdk如何允许用户在IB构建的标签栏中重新排序标签栏项目
我一直在研究这个功能,但似乎大多数解决方案都要求您以编程方式构建 tababr。我的标签栏是在 IB 中构建的,我并不是特别想重新编码我的大部分应用程序(除非我绝对必须这样做)。
对于 IB 构建的标签栏,我还没有找到教程或指南。有人有好的链接或一些信息来帮助我吗?提前致谢。
I've been investigating this feature but it seems that most solutions require yo to have built your tababr programatically. My tab bar is built in IB and I don't particularly want to recode most of my app (unless I absolutely have to.)
For IB built tabbars I've not yet found a tutorial or guidance. Does anyone have a good link or a some information to help me?. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
选项卡栏控制器有一个名为可自定义视图控制器的属性。该数组中的视图可通过选项卡栏控制器的更多导航控制器中提供的默认编辑按钮进行自定义。因此,如果您的选项卡中有 5 个或更多视图控制器,则第 5 个选项卡上将有更多导航控制器。并且该更多导航控制器提供了编辑按钮来重新排列选项卡栏项目。
Tabbar controller has a property named customizable view controllers. Views which are in this array are customizable through default edit button provided in more navigation controller of tabbar controller. So if your tabbar is having 5 or more view controllers in it, it will have more navigation controller at 5th tab. And that more navigation controller provides edit button to rearrange the tab bar items.
您只需要在 tabBar 中有 5 个或更多选项卡,您就会获得允许自动重新排序的“更多”选项卡。
You just need to have 5 or more tabs in the tabBar and you will get the "More" tab which allows reordering automatically.