I know how to set alternating colors to a tableviewcell, but how can I set all the visible rows to have an alternating color? For instance, right now if I only have 2 cells with data, only 2 cells will have background colors – how do I fill the backgrounds of the empty cells too?
Share
Add dummy cells to the end of your list.