gpt4 book ai didi

ios - 没有 moreViewController 的 UITabBarController 的最大选项卡数

转载 作者:技术小花猫 更新时间:2023-10-29 10:15:52 25 4
gpt4 key购买 nike

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

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

最佳答案

最多为 5 个(在 iPhone 上,在 iPad 上为 8 个)。当您添加第六个时,您将获得第一个四个以及一个带有其他两个的“更多”选项卡。这无法使用标准的 UITabBarController 进行更改。

搜索github或其他资源。替换类可能会减少,这将使您一次显示更多选项卡。

关于ios - 没有 moreViewController 的 UITabBarController 的最大选项卡数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20403971/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com