Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS

Andrew Bernard
Andrew Bernard
23,262 Points

Parse data infinite scroll in a TableView. - Swift

I am looking for a solution to add a infinite scroll to my data from a Parse database. I would like to only fetch the first 20 objects and then when I reach the bottom of those 20 it loads another 20. Anyone out there implemented this in Swift?

Thank you

1 Answer

Michael Reining
Michael Reining
10,101 Points

Hi Andrew,

I have not implemented this but the resource below on infinite scroll in iOS might help trouble shoot it.

http://stackoverflow.com/questions/26105636/infinite-scroll-on-ios-with-swift

There is also a GitHub project regarding infinite scroll in Swift.

If you look at their implementation you might just be ablet to tweak it for your case.

https://github.com/pronebird/UIScrollView-InfiniteScroll

I hope that helps,

Mike

PS: Thanks to the awesome resources on Team Treehouse, I launched my first app.

Now you can practice writing Swift code directly on your iPhone :-)

Code! Learn how to program with Swift