停止UITableView在顶部&底部? [英] Stop UITableView over scroll at top & bottom?

查看:104
本文介绍了停止UITableView在顶部&底部?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 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屋!

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