title: How would you implement a dataSource object for an UIScrollView?
body: <p>Tell me if I am wrong with that:</p>
  
  <p>I made an new class ScrollViewDataSource. That class conforms to an protocol I created within my delegate for the scroll view. Well, it's a very special delegate that does some very complex stuff upon scrolling. So this delegate receives that data source object upon initialization. The datasource object now has a method </p>
  
  <ul>
  <li>(NSArray*)subviewsFromIndex:(NSInteger)fromIndex toIndex:(NSInteger)toIndex;</li>
  </ul>
  
  <p>so when the user scrolls, the delegate rings the datasource object lots of times dunring scrolling to ask for data. I'm going to recycle views during scrolling. That means, if the user scrolls down, I remove the views from the top to the bottom, and fill them up with new data.</p>
  
  <p>The NSArray contains UIView objects, which will be positioned appropriately during scrolling. Also, on first launch of the view that contains the scroll view, the data source will deliver the data to display the first visible contents.</p>
  
  <p>Is that a good pattern, or do you have better ideas for that? 
  BTW: I know a UITableView does something similar. But I want to learn that. It's a practise for me. Thanks!</p>