Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

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