How to do dynamic scrolling from array
I am developing an iOS app using Appcelerator and I got a table with a user on each row.
The data is coming from an XHR request to a remote API.

I sometimes get over 100 rows and I just want to load the 10 first of them and then use the dynamic scrolling example from the kitchen sink. The problem is that that example is not aimed at showing how to dynamically load data from an array.

This is how I done it so far and it works to load the first 5 items and the next 5 but then there is errors and the simulator crashes. How can I modify this example to work?

http://pastie.org/2547252

Thankful for all input!
How to do dynamic scrolling from array
===

I am developing an iOS app using Appcelerator and I got a table with a user on each row.
The data is coming from an XHR request to a remote API.

I sometimes get over 100 rows and I just want to load the 10 first of them and then use the dynamic scrolling example from the kitchen sink. The problem is that that example is not aimed at showing how to dynamically load data from an array.

This is how I done it so far and it works to load the first 5 items and the next 5 but then there is errors and the simulator crashes. How can I modify this example to work?

http://pastie.org/2547252

Thankful for all input!