UITableView 页脚,停止浮动内容 [英] UITableView Footer, Stop from floating over content

查看:17
本文介绍了UITableView 页脚,停止浮动内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想让我的 UITableView 页脚停止漂浮在我的内容上,就像默认活动一样.我希望我的页脚是……好吧……一个页脚.总是在我的表格视图末尾显示的最后一个视图.:)

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; 设置footer view,footer就不会滚动了桌子.

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 页脚,停止浮动内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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