title: iOS - How to make the tableview use paginated API output?
body: <p>An API I am writing has about 2000 records, returned in JSON via a simple RESTful API I have written.</p>
  
  <p>To reduce issues with lots of data, I want to use pagination so that I only return say the first 10 or first 20 per request via like an <code>offset</code> or <code>limit</code> or <code>page</code>, etc.</p>
  
  <p>But my question is how does the iOS <code>UITableView</code> know when to get the next page of results?</p>
  
  <p>I really am unsure of how to do this.  The user could be scrolling superfast and so the API might not have enough time to retrieve 20 or 50 records at a time.</p>
  
  <p>Another issue related to this is, lets say the user scrolls down on the UITableView, then up and then back down again -- how do you prevent the API from firing multiple times for the same rows?</p>
  
  <p>Thanks</p>