没有moreViewController的UITabBarController的最大选项卡数 [英] maximum number of tabs for UITabBarController without moreViewController

查看:121
本文介绍了没有moreViewController的UITabBarController的最大选项卡数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

简短地实际创建一个UITabBarController并执行相关的实验,iOS是否有一种编程方式来获取可以在tabBarController中显示的最大选项卡数量,而无需更多"选项卡?

Short of actually creating a UITabBarController and performing the relevant experiment, does iOS have a programmatic way of getting the maximum number of tabs that could show up in the tabBarController, without a "more" tab?

这对于我正在做的一些跨平台工作非常有帮助.

This would be highly helpful for some cross-platform work I'm doing.

推荐答案

最多为5个(在iPhone上为8个,在iPad上为8个).当您添加第六个时,您将得到前四个,再加上一个其他"选项卡.不能使用标准UITabBarController进行更改.

The most is 5 (on an iPhone, 8 on an iPad). When you add a sixth you get the 1st four plus a More tab with the other two. This can't be changed using a standard UITabBarController.

搜索github或其他资源.替换类可能有所减少,使您可以一次显示更多选项卡.

Search github or other resources. There may be drop in replacement classes that will let you have more tabs shown at once.

这篇关于没有moreViewController的UITabBarController的最大选项卡数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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