I have an API and when I send a request from Alamofire it returns me, for example, 500 records! I cannot take all of it and use it. Instead of it I did pagination on my API, as /page/1
, /page/2
, etc.
But how can I load this data in my UITableView? I want to show loading indicator when I scroll my UITableView, while I get my data, and get my data partly, append it to my main array. How can I achieve this?
Or there is another solution for it? What you can advice me?
I searched a lot about it, but most of the solutions are in Objective-C. I found this one: iOS - How to make the tableview use paginated API output?
but I did not understand the answer completely. Some variables there, I do not know what they means