PDA

View Full Version : Loading more content when scrolling hits end




Starfox
Dec 12, 2011, 04:32 PM
I have an app with a table view that I want to load more content when the user has scrolled to its end - where should I start with implementing that? How can I be notified of the scrolling reaching the end?



kainjow
Dec 12, 2011, 08:48 PM
If the row in tableView:objectValueForTableColumn:row: is your data source's last object, then you're at the end. It doesn't get requested until it's about to be made visible in the view.

Then you could load more data (in the background!) and reload the table when done.