一个视图中的TabBar导致带有另一组Tabbar的第二个视图 [英] TabBar in one view leading to a second view with another set of tabbar

查看:35
本文介绍了一个视图中的TabBar导致带有另一组Tabbar的第二个视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一些帮助,甚至将我引导到帮助的链接也将非常感谢.

I need some help or even a link to direct me to the help will be much appreciated.

我现在有一个主要的tabBar视图,该视图将表格中的患者列表显示为tabBar的默认值.在表格中单击患者的各个行时,它将在另一视图中为我提供患者的信息.但是,在此PatientInfo视图中,我希望有一组新的tabBar,它允许我显示除PatientInfo之外的其他选项卡.

I have a main tabBar view now which shows a list of patients in a table as the tabBar default. On clicking of the individual rows of patients in the table it will give me the information of the patients in another view. However, in this patientInfo view, I want to have a new set of tabBar which allows me to show different tabs other that patientInfo.

这可能吗?一个tabBarController导致另一个tabBarController?我试过了,但旧的标记栏并没有消失,而是添加了它,导致在一个视图中出现2个tabBars.我不喜欢=(

Is this possible? A tabBarController leading to another tabBarController? I tried but the old tag bars doesnt disappear but instead adds on it, leading to 2 tabBars in one view. I dun wan that =(

请帮助我.

推荐答案

听起来像您需要将标签栏控制器放入导航控制器,然后在该标签栏控制器中放置表格视图控制器,当按下一行时,您会将另一个标签栏控制器推到导航控制器上.

Sounds like you need to put your tab bar controller inside a navigation controller, and the table view controller inside that tab bar controller, when a row is pressed, you'd push another tab bar controller to the navigation controller.

它看起来像这样:

Navigation Controller
 |
 ⎬- First Tab Bar Controller
 |  ⎬- Table View Controller
 |  ⎬- ...
 |  ⎬- View Controller
 |
 ⎬- Pushed Tab Bar Controller (pushed when a row is selected)
 |  ⎬- More View Controllers

请记住,如果有另一个按钮,则在按下标签栏控制器时可能会使用户感到困惑,因为他们可能没有意识到或期望标签也会更改.

Keep in mind that pushing a tab bar controller when there's another in place can be confusing for the user, as they might not realize or expect that the tabs change too.

为清楚起见,我认为标签栏控制器上有一个属性,如果启用,则在标签栏控制器滑出时会动画化幻灯片滑出标签栏,并在出现动画时在标签栏上动画化滑入控制器滑入.您可以使用它,以便用户注意到选项卡栏已更改.

To make it clear, I think there's a property on the tab bar controllers that, if on, animates a slide out of the tab bar when the tab bar controller will slide out, and animates a slide in of the tab bar when the controller slides in. You could use this so the user notices that the tab bar changed.

这篇关于一个视图中的TabBar导致带有另一组Tabbar的第二个视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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