This is the intended behaviour of a UITableView
. The whole point of a UITableView
is to queue up cells that are needed and release cells that aren’t needed to manage memory.
If you would like the cells to be all loaded (I would recommend against this, horrible performance and memory usage), populate a scroll view with views offsetted by some y constant for every row.
Once again, cells aren’t loaded for a reason and that’s the whole point for a UITableView
. Apple didn’t do a load-all implementation and neither do I think you should.
2
solved UITableView in Swift: Offscreen cells are not pre-loaded