【问题标题】:View switching and using Tab Bar Controller视图切换和使用 Tab Bar Controller
【发布时间】:2012-09-30 21:40:11
【问题描述】:

我有基于标签栏控制器的应用程序,在第一个栏项目有名为“主”的项目

在主视图控制器上(根据选项卡栏上的“主”项)我有UIScrollView 用于通过页面控制切换一些视图, 这些视图包含 UIButtons(用于此上下文按钮)。

1) 我如何去导航控制器(表格视图)与按钮操作中的 TabBar 控制器关系, 如果我使用:

TableViewController *newsViewController = [self.storyboard instantiateViewControllerWithIdentifier@"NewsViewController"];
[self.tabBarController presentViewController:newsViewController animated:YES completion:NULL];

有没有根标签栏的视图,但期待它。

2) 如何从 Button-Action 转到 Navigation Controller(Table View) 不在 TabBar Controller 关系中, 在这种情况下,我需要在目标视图上也有 Root UITabBar

【问题讨论】:

  • 没有得到..你想根据表格视图中的操作切换标签吗..?

标签: iphone ios5 uitabbarcontroller tabbar


【解决方案1】:

这个示例应用程序可以为您提供很多帮助:

Sample Application Link

同一个问题的另一个链接是:

Similar Question..

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2016-12-20
    • 2011-06-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-05
    • 1970-01-01
    相关资源
    最近更新 更多