Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UITableView scroll direction

Is there anyway to know if a UITableView is scrolling towards the upper or the lower end of the table ?

like image 422
Vasilis Aivalis Avatar asked Feb 10 '10 13:02

Vasilis Aivalis


1 Answers

There's no single function/property to do that. I think the easiest way to get the direction is to save current content offset in delegate's scrollViewWillBeginDragging: method and compare it to the current offset value in delegate's scrollViewDidScroll: method.

like image 200
Vladimir Avatar answered Nov 09 '22 22:11

Vladimir