I have a UICollectionView
which displays content received from the web. The number of cells can be known only at runtime. Client's requirement is that each row in the collection view must have a different color.
For example, If I have to show 12 items in my UICollectionView
then suppose if first row has 3 cells then the colour of all three cells should be red.
Cells of second row should be white and so on.
Could you please help me how to achieve it?
Thanks in advance.