问题描述
我想让我的UITableView Footer停止浮动我的内容,这是默认活动。我希望我的页脚是......好吧...一个页脚。始终是我的tableview末尾显示的最后一个视图。 :)
I would like to make my UITableView Footer stop floating over my content, as is the default activity. I want my footer to be.. well.. a footer. Always the last view to be displayed at the end of my tableview. :)
实际上标题也一样。
有没有简单的方法可以将它从浮动中禁用滚动时在表格视图的顶部?
Is there any easy way to disable it from floating over top of the table view as you scroll?
谢谢大家,我在其他地方找不到答案。
Thank you everyone, I couldn't find an answer elsewhere.
推荐答案
好的,事实证明,如果您通过 blahblahtableView.tableFooterView = someview;
设置页脚视图,页脚将不会滚动表格。
Ok, it turns out that if you set the footer view via blahblahtableView.tableFooterView = someview;
, the footer will not scroll with the table.
但是,如果您使用 viewForFooterInSection
创建页脚,它将跟随您的视图并且坚持在屏幕的底部。
However, if you create your footer using viewForFooterInSection
, it WILL follow your view around and stick on the bottom of the screen.
不知道为什么我不能早点找到这个答案。对不起所有:)
Not sure why I couldn't find this answer sooner. Sorry all :)
这篇关于UITableView页脚,停止浮动内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!