我需要有关此UITabBarController实现的专家建议 [英] I need Expert Advice on this implementation of UITabBarController

查看:66
本文介绍了我需要有关此UITabBarController实现的专家建议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前需要8个 TabBarItems ,我只能显示4个项目。而且我需要能够滚动到接下来的4个tabBarItems。

I am currently in need of 8 TabBarItems, and I can show just 4 items in view. And I need to be able to scroll to the next 4 tabBarItems.

在UITabBar的默认行为中,通常会为5个以上的标签栏项目提供一个更多标签栏。我希望它成为滚动按钮,而不是更多按钮。

In the default behavior of the UITabBar, you normally get a 'MORE' tabbaritem for more than 5 tab bar items. I want it to be the Scroll Button in place of the MORE button.

所以〜〜如果按滚动按钮(或第五个按钮)tabBarItem,它应该显示4

So ~ ~If I press the scroll button (or the fifth) tabBarItem, it should display 4 more tab bar items with a back scroll button.

这些是我的操作方式--

These are my ways of doing this - -


  1. 实现滚动UITabBarItems,但这意味着我必须从头开始进行项目,这不是我的最佳选择。

  1. Implementing a Scroll UITabBarItems but this would mean I have to work on the project from scratch, and this is not my best option.

我可以将视图控制器推到最后一个选项卡上,并显示带有4个选项卡栏图标的新视图,然后进行处理。 (在从选项卡栏控制器中推送选项卡栏控制器时遇到麻烦)

I can push view controller on the final tab and show a new view with 4 tab bar icons, and work on that. (Having trouble with pushing a tab bar controller from a tab bar controller)

我可以为接下来的四个选项卡提供一个模式视图控制器,并在出现时弹出它我按下后退滚动按钮。 (将tabbarcontroller设置为当前模式视图控制器时遇到麻烦)

I can make present a modal view controller for the next four tabs and pop it when I press back scroll button. (Having trouble with setting up a tabbarcontroller as a present modal view controller)

从tabBarViewController数组中删除所有视图,并在单击相应的选项卡时添加新视图。单击上一个选项卡时,再次重新加载相同的选项卡。这些并发症有哪些?我不想打扰rootController。

Removing all views from the tabBarViewController array and adding new ones when the corresponding tab is clicked. And again reloading the same tabs when previous tab is clicked. What are the complications of these ? I do not wish to disturb the rootController.

您还能想到什么?

无论如何我采用的方法我需要在两个视图之间滑动动画。

Whatever approach I take, I need sliding animation between the two views.

如果有人可以就如何做提供专家意见,我将不胜感激。

I would appreciate it if anyone could offer expert advice on what can be done.

谢谢。

推荐答案

我只看到两个不错的选择: / p>

I only see two good options:


  1. 将标签扔掉,接受这八个选项对于标签栏来说太多了。而是进入顶层选择屏幕。使用带有列表的表格视图,或使用诸如选项网格之类的主屏幕。

  2. 硬着头皮,实现自己的LGInfiniteTabBarController(包括LGInfiniteTabBar),它实际上具有您想要的行为。没有您想要的标准控件。

这篇关于我需要有关此UITabBarController实现的专家建议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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