配置具有超过16个项目的UITabBar [英] Configuring a UITabBar with more than 16 items

查看:58
本文介绍了配置具有超过16个项目的UITabBar的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的UITabBarController包含16个以上的视图控制器.当我进入更多"选项卡时,可以看到所有的UITabBarItems.如果单击编辑"按钮,则可以看到前16个图标,但是没有足够的空间显示更多的图标,因此从第17个项目开始,这些图标仅会部分显示.从第21项开始,完全不显示图标.而且无法通过滚动条访问其余的图标.

My UITabBarController contains more than 16 view controllers. When I go in the "More" tab, I can see all the UITabBarItems. If I click the "Edit" button, I can see the 16 first icons, but there is not enough room to display more, so starting from the 17th item, the icons are only partially displayed. Starting from the 21st item, the icons are not displayed at all. And it is not possible to access the rest of the icons with a scroll bar.

顺便说一句,这个问题给出了从理论上回答了我的问题,但没有解决这个实际的极端情况.

By the way, this question gives a theoretical answer to my question, but does not address this practical corner case.

推荐答案

如果您拥有超过5个,则需要考虑其他显示视图控制器的模式.例如,facebook应用程序显示了一个显示性的侧边栏,也许您需要找出一个以类似的方式显示东西的方式.

You need consider other modes of displaying view controllers if you have more than 5. For example the facebook app shows a revealing sidebar, maybe you need to figure out a way of displaying stuff in a similar manner.

这篇关于配置具有超过16个项目的UITabBar的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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