Because it took me AGES. Here’s the snippet.
UIScrollView *scrollView = _tableViewController.tableView;
if(scrollView.contentOffset.y >= scrollView.contentSize.height - scrollView.frame.size.height) {
MRDINFO(@"we are at bottom");
_needScrollDown = YES;
}else {
MRDINFO(@"we're somewhere else");
2 Responses to UIScrollView: detect if we are at bottom
Alex
December 31st, 2009 at 1:36 pm
Auweh, das wäre so ähnlich auch im stanford podcast vorgekommen…
Aditya
December 10th, 2011 at 6:45 am
Working.. many thanks.. this is so helping me..