简体   繁体   English

在xcode 4.3中使用UITableViewController xib创建UITabbarController

[英]create UITabbarController with UITableViewController xib in xcode 4.3

I'm new in iPhone, I want to create UItabbarController with 4 tabs, each tab contains UItableViewControllers in xib for both iPhone and iPad and want (h & m) files for each table. 我是iPhone的新手,我想创建带有4个选项卡的UItabbarController,每个选项卡在xib中都包含针对iPhone和iPad的UItableViewControllers,并且每个表都需要(h&m)文件。

Consider that I'm using Xcode 4.3 with iPhone 5.1 and I'm not want to use storyboard. 考虑到我正在将Xcode 4.3与iPhone 5.1一起使用,并且我不想使用情节提要。

is there are any good tutorial to do this? 是有什么好的教程做到这一点? Thanks in advance. 提前致谢。

First of all you do not need to create a new UItabbarController.You can use default tabbar controller and what you need is adding 4 tab bar items as UItableViewControllers to uitabbar controller. 首先,您不需要创建新的UItabbarController。您可以使用默认的Tabbar控制器,您需要将4个标签栏项作为UItableViewControllers添加到uitabbar控制器。

You can refer to this tutorial about tabbabcontrollers 您可以参考有关tabbabcontrollers的教程

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