I am giving the user a view onto a selection of database records. There could be a handful of these, there could be 10,000 of them.
At present I use a UITableView. Cells are therefore created or recycled on demand. When a cell is created, it is displayed with default "empty" contents and it sends a message to the server to request a record. When the record arrives, the cell is then able to change its own contents so that the record appears on the screen.
There are of course various optimisations, such as cancelling a request if the cell goes offscreen before a reply is received; or delaying a request if it looks as if the cell will end up being off the screen once scrolling has stopped.
All this happens with fixed-height cells. Accordingly the UITableView has all the data it needs to work out where every one of the 10,000 cells is.
I now want to extend this to variable-height cells. That is: cells whose height depends on the content received from the database.
Accordingly, when a cell receives its data it may find itself having to change its own size.
Is this structure practicable with UITableView?
Topic:
UI Frameworks
SubTopic:
UIKit
2
0
76