I am using parse server.
I have # of social media posts with data that I add to the tableview. Everything loads correctly. However, I have a massive amount of posts (50).
I only want to limit the tableview to have a max of 10, which I successfully use via query.limit. However, I would like to load the next 10 on the tableView once the user scrolls passed the last 10 of the series.
Additionally, I would like to delete the previous 10 of the series because this will take up too much data on my user's phone.
I would recommend against deleting the current items in the UITableView, as that's an abnormal design pattern and is likely to confuse your users. UITableViews and UICollectionViews are designed to reuse cells in order to be performant.
Here's how I would handle pagination. This example uses a UICollecitonView, but you should be able to apply the same logic with your tableview