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 页脚,停止浮动内容


- 想使用ViewPager,无法识别android.support.*? 2022-01-01
- Android viewpager检测滑动超出范围 2022-01-01
- 使用自定义动画时在 iOS9 上忽略 edgesForExtendedLayout 2022-01-01
- Android - 拆分 Drawable 2022-01-01
- 如何检查发送到 Android 应用程序的 Firebase 消息的传递状态? 2022-01-01
- 用 Swift 实现 UITextFieldDelegate 2022-01-01
- android 4中的android RadioButton问题 2022-01-01
- 在测试浓缩咖啡时,Android设备不会在屏幕上启动活动 2022-01-01
- Android - 我如何找出用户有多少未读电子邮件? 2022-01-01
- MalformedJsonException:在第1行第1列路径中使用JsonReader.setLenient(True)接受格式错误的JSON 2022-01-01