We are currently doing something similar in our application. Since UITableView is inherited from UIScrollView, you probably want to use some of the properties and methods of UIScrollView. You will almost certainly want to implement a class that matches the UIScrollView delegate. Then, when the user scrolls to the bottom of the currently loaded entries in the UITableView, you can request a web service for the next data page. The documentation for UIScrollView is here and the documentation for UIScrollViewDelegate is here .
Here is an example implementation of the scrollViewDidScroll: method scrollViewDidScroll: UIScrollViewDelegate, which should get the behavior of loading records when the user reaches the bottom of the scroll.
- (void) scrollViewDidScroll:(UIScrollView *) scrollView {
The beauty of UITableViewDataSource methods is that they do not require your data to be stored in memory. You can provide the necessary data for each cell requested on demand when tableView:cellForRowAtIndexPath: called. Similarly, you can provide a value to return from tableView:numberOfRowsInSection: without actually having all the data for the rows in memory. However, you will most likely want to save cell data around the memory cells you are viewing in memory to ensure reasonable performance. Unfortunately, all this can be quite complicated, but it should be possible. You can find more documentation on the UITableDataSource here .
source share