标签栏覆盖UITableView的最后一个单元格 [英] Tab bar covers UITableView's last cell

查看:139
本文介绍了标签栏覆盖UITableView的最后一个单元格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发基于Tab Bar应用程序预设的应用程序。在其中一个选项卡中,我有一个显示大量数据的表格视图,但当我滚动到底部时,表格视图中最后一个单元格的一半被标签栏覆盖。

I'm developing an application based on the Tab Bar application preset. In one of the tabs I have a table view showing a lot of data, but half the last cell in the table view is covered by the tab bar when I've scrolled to the bottom.

任何人都有这方面的解决方案吗?

Anyone has a solution to this?

推荐答案

真实的答案:



我遇到了这个问题,最后到了这里......所以即使这个已经老了,我也是这样解决这个问题的:

REAL ANSWER:

I had this problem, and ended up here ... So even if this is old, here is how I solved this issue:

我有一个UITabBar控制器,一个标签是一个UIViewController,它有一个添加的行:

I had a UITabBar controller with one tab being a UIViewController, and it had a single added line:

[self.view addSubview:navController.view];

这是错误 ..即使代码有效,概念也是错误(至少在我的情况下),navController应该直接链接在UITabBar中作为其中一个标签...

This is wrong .. Even if the code worked, the concept is wrong (at least in my case), the navController should be directly linked in the UITabBar as one of the tabs...

那么,真正的答案是什么?

So, what's the real answer?

您必须错误地实施导航控制器。正如我所解释的那样,证明我遇到了这个问题,并且这个家伙 ......

You must have implemented the navigation controller incorrectly. As proof is that I had this issue, as I explained, and also This Guy...

这篇关于标签栏覆盖UITableView的最后一个单元格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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