0

After each scroll (however large or small) of a UITableView, I would like to call -indexPathsForVisibleRows to run a method on the data that corresponds to visible cells.

Are there any existing notifications or delegate methods I can tap into when a UITableView is scrolled? I'd like to avoid subclassing.

EDIT

I ended up subscribing to the UIScrollViewDelegate protocol and implementing the following delegate method:

- (void) scrollViewDidEndDecelerating:(UIScrollView *)scrollView;

Works great!

Alex Reynolds
  • 95,983
  • 54
  • 240
  • 345

1 Answers1

2

Look at the UIScrollViewDelegate methods, they are being called since UITableView is a subclass of UIScrollView

Joost
  • 10,333
  • 4
  • 55
  • 61