How to make a table view which can be scrolled for ever?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-04-29T16:14:43Z Indexed on 2010/04/29 16:17 UTC
Read the original article Hit count: 245

Filed under:
|

I have a set of 100 rows, pretty similar to values which can be selected in a picker. When the user scrolls the table, I want the rows to be appended like an forever-ongoing assembly-belt. So when the user scrolls down and reaches the row 100, and scrolls even further, the table view will show again row 1, and so on. Reverse direction same thing.

My thoughts:

  • don't display scroll indicators (they would make not much sense, probably)
  • what value to return in the numberOfRows delegate method? This infinity constant?
  • in cellForRowAtIndexPath: simply wrap the index around when it exceeds bounds?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview