views:

154

answers:

1

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

+2  A: 

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.

Vladimir
+1 / Remember, UITableView inherits from UIScrollView and so too are the delegates
slf