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 equivalent of TwoWayView in Android

I'm currently trying to convert an application from Android to iOS. One of the things I use in the Android application uses an infinite TwoWayView (https://github.com/lucasr/twoway-view). I make it infinite by using a special list adapter that has its size defined as Integer.MAX_VALUE and uses modular arithmetic in getView() to decide which View to return. I have also modified it slightly to enable paging.

It is used as a "letter slider". Each letter of the alphabet is represented as a TextView with a border. The paging snaps to the border of the TextView. It is "infinite" to allow unlimited scrolling in both directions, including flinging.

I haven't got much experience with iOS and no matter how much I search on Google, I can't seem to find a good replacement for the Android version. The ones I have found use lazy loading but so far that seems to present a problem with flinging.

Does anyone know of something similar that can be used in iOS?

1 Answer

Maybe using Page View Controllers and Table View Controllers you can achieve the same functionality