没有UITabBarController的UITabBar功能 [英] UITabBar functionality without UITabBarController

查看:126
本文介绍了没有UITabBarController的UITabBar功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个问题,我有一个基于导航的应用程序,在详细视图之一我需要有UITabBar,它将显示一些UITableViews。由于苹果文档说你永远不应该向导航控制器添加标签栏控制器这是一个很大的问题,我找到了这个样本:链接文本,它正常工作,但在选择其中一个表格视图后,UITabBar就会消失。

I have this problem, I've got a navigation-based application, and on the one of the detail view i need to have UITabBar, which will display some UITableViews. Since apple documentation says "you should never add a tab bar controller to a navigation controller" it make quite a problem, i've found this sample: link text, it's working, but after picking one of the table view, the UITabBar disappears.

推荐答案

既然您没有使用TabBarController来显示tableviews(如链接中所述),您是否确保在点击选项卡时要添加的表视图或任何其他视图正确的尺寸?

Now that you are not using a TabBarController for showing the tableviews (as mentioned in the link), have you made sure that the table views or any other views you are adding when a tab is tapped are correct size?

您正在添加子视图或将其置于顶部,以便表格视图可能覆盖您的标签栏。

You are adding a subview or bringing it to top so the table view is probably covering your tab bar.

这篇关于没有UITabBarController的UITabBar功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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