The Miotz The Miotz -4 years ago 150
iOS Question

iOS Swift: Static Cell

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?

Answer Source

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 :)

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download