基于导航的应用程序中的UITabBar + UITableviewController [英] UITabBar+UITableviewController in navigation based applications

查看:90
本文介绍了基于导航的应用程序中的UITabBar + UITableviewController的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Rootviewcontroller.xib上的UITabBar放到基于导航的应用程序中。我知道我们在Tableviews中使用了基于导航的应用程序,默认情况下,.xib包含一个tableview。我试图将UITabBar放在rootview的底部,但它没有设置在那里。

I am trying to put a UITabBar on a Rootviewcontroller.xib to a Navigation based Application. I know that we used navigation based applicaitons for Tableviews and by default those .xib consists of a tableview. I tried to put a UITabBar in the bottom of rootview but it is not setting over there.

我看到如果我们使用基于视图的应用程序或基于窗口的应用程序,我们可以安排同一视图上的UITabBar和UITableView。我想知道的是:

I saw that if we used viewbased application or a window based application we can arrange both UITabBar and UITableView on the same view. What I want to know here is:

1)我们可以在基于导航的应用程序中放置UITabBar,如果是这样的话?

1) Can we place a UITabBar in Navigation based applications if so how?

2)如果我们从根视图转移到其他详细视图,我希望UITabBar出现在所有其他视图中,任何人都可以告诉我该怎么做。

2) If we shift from root views to other detailed views i want the UITabBar to be appeared on all the other views can any one tell me how can i do this.

谢谢,

推荐答案


这就是你的Xib看起来的样子。
标签栏控制器是父控制器..
图像中显示的导航控制器,即First将仅用于第一个Tab ..
如果你需要导航控制器为第二个选项卡,您必须再添加一个导航控制器。

This is how your Xib should look. Tab Bar controller is parent Controller.. Navigation controller shown in the image i.e. "First" will be just for the first Tab .. if you need the Navigation controller for the "Second" tab, you have to add one more Navigation controller.

按照图像中显示的顺序添加带导航控制器的Tabbar控制器。

Adding Tabbar controller with navigation controller in the order shown in the image.

这篇关于基于导航的应用程序中的UITabBar + UITableviewController的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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