I am working on a project in which at first web service call we are getting some 20 number of data which we are loading to table view and once we start scrolling up for view when it reaches 20 number we need to call service for next 20 no’s, like facebook does.
This we need to do for each next 20 until data ends and load to tableview from last data of previous call and we can see all data when we scroll down for previous data. And need to show “more data loading” when we scroll up table after 20th cell.
Please Help me !
Thanks,
Simply create private offset variable and increase it each time on success loading.
Let’s think this is your web service that gets GET parameters:
Your Objective C code will look like this:
In header file:
In implementation file:
}