I want to create a tableview like this. All sections have custom section header views.
The first row of first section contains a custom row rest of the first section cell’s are another custom cell. Though every section will contain different type of cells.
So what is the best approach to achieve this while managing the speed of tableview? Currently I’m using custom cells using interface builder. Is there a way that I could add different things on different sections on cells?
Try to keep as few types of cells as you can. If one type cell is similar to another but with one or two extra labels, just set it all up in the same cell and keep the labels empty on the cell that doesn’t need them. That way they can be in the same reuse queue. If the cells are different enough you might need to have more queues. Just instantiate them with a different
cellIdentifierand they will get added to the queue for that identifier.eg.