UITableView Footer, Stop from floating over content(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 页脚,停止浮动内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:UITableView 页脚,停止浮动内容


基础教程推荐
- 如何在没有IB的情况下将2个按钮添加到右侧的UINavigationbar? 2022-01-01
- 当从同一个组件调用时,两个 IBAction 触发的顺序是什么? 2022-01-01
- 如何让对象对 Cocos2D 中的触摸做出反应? 2022-01-01
- android 应用程序已发布,但在 google play 中找不到 2022-01-01
- Kivy Buildozer 无法构建 apk,命令失败:./distribute.sh -m “kivy"d 2022-01-01
- Android:对话框关闭而不调用关闭 2022-01-01
- UIWebView 委托方法 shouldStartLoadWithRequest:在 WKWebView 中等效? 2022-01-01
- 如何在 iPhone 上显示来自 API 的 HTML 文本? 2022-01-01
- 在 gmail 中为 ios 应用程序检索朋友的朋友 2022-01-01
- 如何在 UIImageView 中异步加载图像? 2022-01-01