Here's my setup. Table view with custom designed cell, reused many times. The layout is four UILabels and one UIImageView.
I load the cells in tableView:cellForRowAtIndexPath:
, and inside it, after finding out which cell (data item) it is, I populate the labels with appropriate text from the datasource.
Also I have 7 pictograms. Each cell gets one of those pictograms, based on the cell's content (item type). The problem is, each pictogram exists in its normal version and its "selected" version. That means when the cell is selected, the design team has provided me with a modified version of pictogram with slightly different colours.
So for each cell I need to load pictogram_normal
and pictogram_selected
into the same cell so that the selected one is shown when the cell is selected.
How should I set this up?