I acknowledge that UITableview load dynamically a cell when user scrolls. I wonder if there is a way to preload all cells in order not to load each one while scrolling. I need to preload 10 cells. Is this possible?
I acknowledge that UITableview load dynamically a cell when user scrolls. I wonder if
Share
You can initialize table view cells, put them into an array
precomputedCellsand in the data source delegate methodtableView:cellForRowAtIndexPath:return the precomputed cells from the array instead of callingdequeueReusableCellWithIdentifier:. (Similar to what you would do in a static table view.)It might also be useful to have a look at the
WWDC 2012 Session 211 “Building Concurrent User Interfaces on iOS”
where it is shown how to fill the contents of table view cells in background threads while keeping the user interface responsive.