问题描述
我想让我的 UITableView 页脚停止浮动在我的内容上,这是默认活动.我希望我的页脚是......好吧......一个页脚.始终显示在我的 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 页脚,停止浮动在内容上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!