I’m pulling data using API and it comes to me in chunks of 20. I need to get this data by scrolling. In Collection View I do this using viewForSupplementaryElementOfKind. Which method should I use for Table View?
>Solution :
When you have a paginated endpoint, generally the solution is to implement the scrollViewDidScroll delegate method and check the value of the contentOffset against the contentInset and contentSize.
When this check detects that the user is at or near the bottom, make the next call.