如何在标签栏控制器中放置5个标签中的更多标签? [英] How Can i put more of 5 tabs in a Tab Bar Controller?

查看:163
本文介绍了如何在标签栏控制器中放置5个标签中的更多标签?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

:D

我有一个带有TabBarController的情节提要,但是当我与其他人建立关系时,mi标签栏中的七个视图控制器会出现一个更多"标签,如何将这七个标签放在一个标签栏中?

i'm have a storyboard with a TabBarController but when i do the relationship with my others seven view controllers in mi tab bar appears a "more" Tab, How can i put this seven tabs in one tabbar?

我必须手动执行吗?一个tabbarcontroller类?或在uiviewcontroller中实现Tabbar Delegate,但是我不知道如何执行此操作.

I´ll have to do manually? with a tabbarcontroller class? or implementing Tabbar Delegate in a uiviewcontroller, But i dont have any idea how to do this.

非常感谢! 请帮我.

Thank You Soo much! Please Help Me.

再次感谢.

推荐答案

我相信Apple积极劝阻人们不要在其应用程序中执行此操作,我也这样做.我从未在iOS上这样做过,而且我从未见过在任何第三方应用程序中也是如此,因此用户可能会感到困惑.

I believe Apple actively discourages people from doing this in their apps, and so do I. It is never done in the iOS itself, and I have never seen it in any third-party apps either, so users will probably be confused.

如果您在viewControllers属性中添加了五个以上的项目, 标签栏控制器自动插入特殊的视图控制器 (称为更多视图"控制器)来处理 其他项目. More视图控制器提供了一个自定义界面 在表格中列出了其他视图控制器, 扩展以容纳任意数量的视图控制器.更多视图 不能自定义或选择控制器,并且不会出现在任何控制器中 标签栏控制器管理的视图控制器列表的列表.为了 在大多数情况下,它会在需要时自动显示 与您的自定义内容分开.你可以得到它的参考 尽管通过访问以下内容的moreNavigationController属性 UITabBarController.

If you add more than five items to the viewControllers property, the tab bar controller automatically inserts a special view controller (called the More view controller) to handle the display of the additional items. The More view controller provides a custom interface that lists the additional view controllers in a table, which can expand to accommodate any number of view controllers. The More view controller cannot be customized or selected and does not appear in any of the view controller lists managed by the tab bar controller. For the most part, it appears automatically when it is needed and is separate from your custom content. You can get a reference to it though by accessing the moreNavigationController property of UITabBarController.

也请参考此链接以获取可能的解决方法!

Also refer this link for a possible workaround!

这篇关于如何在标签栏控制器中放置5个标签中的更多标签?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆