【问题标题】:How to add a third tab bar item that points to a uitabelviewcontroller?如何添加指向 uitabelviewcontroller 的第三个标签栏项目?
【发布时间】:2012-04-07 17:14:18
【问题描述】:

如何将第三个标签栏项目添加到标签栏并使其指向 UITabelViewController?

我开始使用 Xcode 4.2 打包的 TabBar 项目模板。它预先配置了我使用过的两个选项卡,但是,我想添加第三个选项卡并让它指向一个 UITabelViewController。我尝试将“选项卡栏项目”从“对象”窗口拖到选项卡栏中,但它不允许我这样做。

【问题讨论】:

    标签: iphone tabs uitabbarcontroller xcode4.2 tabbar


    【解决方案1】:

    不要将Tab Bar Item拖到标签栏上。

    【讨论】:

      【解决方案2】:

      在 Interface builder 的 Object Navigator 中,展开 tabBar 并在其下复制一项并将其粘贴到那里。它将创建另一个 tabItem,如果您展开它,您将能够将其中的 UIViewController 更改为 UITableViewController

      【讨论】: