Reputation: 7638
My table has 3 section, each section has a cell, one cell contains an ImageView and two of them contain a label.
Should I make 3 different CellController to populate them or there is a faster way?
Upvotes: 0
Views: 157
Reputation: 15512
The fastest way I believe it is to use static cells. But you should understand that it is not so flexible way and should be used if you now that no dynamic UI changes are required. You should have 1 cell type. It is for the image one. Label cells are default one that could be used.
Small example:
Upvotes: 1
Reputation: 3556
If you have only three rows, you can simply create them as static cells on your storyboard and then link to the value fields in the rows directly from your view controller via outlets. That way you don't have to do any cell handling at all except from your view controller.
This works for simple tables. If you have something more complicated, then you might want to go a different way :)
Upvotes: 1