Take one integer
set it to 0. Now Used Pull to refresh functionality (Pull To refresh exmaple).
Now in API side you have to set the two extra parameter like pagenumber
and pageSize
At very first time you call API with pageNumber=0
and pageSize=20
Now when you pull the table then you have a particular method in which you have to call the API with pageNumber++
and pageSize=20
again and whatever you get in the response add into your NSMutableArray
. If you found nothing then remove pull to refresh option
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…