When using UITableView:dequeueReusableCellWithIdentifier, can I make any assumptions about the state of the cell that is returned? For instance, if my UITableView only displays UITableViewCells with a font size of 18, can I set the font size once on the initial alloc code and assume it will also be set to 18 when returned from dequeueReusableCellWithIdentifier? Is there any state I should never make assumptions about?
When using UITableView:dequeueReusableCellWithIdentifier, can I make any assumptions about the state of the cell
Share
Yes there is, the
contentViewis never reset. Although all cells are automatically cleaned by the method:when the cell is dequeued, the
contentViewis NOT cleaned.