打开UITableViewController作为UItabbarcontroller的项目 [英] open UITableViewController as an item of UItabbarcontroller

查看:108
本文介绍了打开UITableViewController作为UItabbarcontroller的项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个UITabbarController,它的第一个项目是UIViewController,这个UIViewController包含一个必须打开UITableViewController的按钮。

I created an UITabbarController that its first item is an UIViewController, this UIViewController contains a button that must open UITableViewController.

我在StoryBoard中创建了UITableViewController和UIViewController并给了它们标识符名称。

I created the UITableViewController and UIViewController in the StoryBoard and gave them identifier name.

我的问题是,当我按下UIViewController中的按钮打开表,它打开UITableViewController但没有tabBar,我希望UITableViewController作为tabBar中的项目(项目打开其他项目)

my problem is,when I press the button that is in the UIViewController to open the table, it opens the UITableViewController but without the tabBar and I want the UITableViewController be as an item from the tabBar (item opens other item)

怎么做?任何人都可以给我看看示例代码
对不起我的错误解释。

how to do this ?? can anyone show me sample code sorry for my bad explanation.

考虑我正在使用Xcode4.3

consider that I'm using Xcode4.3

推荐答案

将视图控制器嵌入导航控制器中。将此导航控制器设置为tabBar控制器的视图控制器(第一项)。不要以模态方式显示表视图控制器。而是使用导航控制器进行隔离。

Embed ur view controller inside a navigation controller. make this navigation controller as the tabBar Controller's view controller(first item) .Don't present the table view controller modally . instead segue it using navigation controller.

这篇关于打开UITableViewController作为UItabbarcontroller的项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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