简体   繁体   English

将导航控制器实现到标签栏控制器中

[英]Implement a navigation controller into a tabbar controller

Okay I have a well known problem. 好吧,我有一个众所周知的问题。 I want to implement a tableview controller into a navigation controller. 我想将tableview控制器实现为导航控制器。 And this navigation controller should be implemented in a tabbar controller. 并且此导航控制器应在选项卡控制器中实现。

I am using XCode 4.2 and I started a new project with a tabbar controller template Now what I did was in the xib file from firstViewController deleted the view and added a navigation controller with a tableview controller in it. 我正在使用XCode 4.2,并使用标签栏控制器模板启动了一个新项目。现在我所做的是在firstViewController的xib文件中删除了该视图,并在其中添加了带有表视图控制器的导航控制器。

I connected the files owner view to the tableview item. 我将文件所有者视图连接到tableview项。 But when I build and run it only shows the table view and not the navigation controller. 但是当我构建并运行它时,它仅显示表格视图,而不显示导航控制器。

Can anybody help? 有人可以帮忙吗?

Kind regards 亲切的问候

There is the TabBarController Application. 有TabBarController应用程序。 In this application you will see how to implement NavigationController and TableView together in the TabBarController application: 在此应用程序中,您将看到如何在TabBarController应用程序中一起实现NavigationController和TableView:

http://www.edumobile.org/iphone/iphone-programming-tutorials/tabbarcontroller-with-navigationcontroller-and-tableview-in-iphone/ http://www.edumobile.org/iphone/iphone-programming-tutorials/tabbarcontroller-with-navigationcontroller-and-tableview-in-iphone/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM