Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I stop the UITableView over scroll at the top and bottom?

Tags:

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?

like image 909
fuzzygoat Avatar asked Jun 05 '13 10:06

fuzzygoat


2 Answers

Since UITableView is a subclass of UIScrollview, it should suffice to just set the 'bounces' property to NO.

Edit: you probably need to set'alwaysBounceVertical' to NO, too...

like image 172
Toastor Avatar answered Jan 31 '23 01:01

Toastor


You can set the tableview bounces property to NO.

like image 27
Adithya Avatar answered Jan 31 '23 01:01

Adithya