停止UITableView在顶部&底部? [英] Stop UITableView over scroll at top & bottom?
问题描述
我使用 UITableView
与 UITableViewCells
,我想停止列表的顶部和底部,您可以拉到最顶端的单元格显示背景(有时用于刷新)的位有没有反正只是使单元格的顶部边缘绝对顶部?所以视图只显示单元格?
I am using a UITableView
with UITableViewCells
and I want to stop the "over" scroll that you get at the top and bottom of the list, The bit where you can pull down on the very top cell to show the background (sometimes used to refresh) Is there anyway to just make the top edge of the cell the "absolute top"? so the view only ever shows just the cells?
推荐答案
由于UITableView是UIScrollview的子类, 'bounces'property to NO。
Since UITableView is a subclass of UIScrollview, it should suffice to just set the 'bounces' property to NO.
编辑:您可能需要将'alwaysBounceVertical'设置为NO ...
you probably need to set'alwaysBounceVertical' to NO, too...
这篇关于停止UITableView在顶部&底部?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!