iOS Change every cell colour (section + row) : <p>I would like to change cell color in every cell (4 colours % 4) :</p>

<p><strong>1. Section 1</strong></p>

<p>Cell 1 : RED</p>

<p>Cell 2 : BLUE</p>

<p><strong>2. Section 2</strong></p>

<p>Cell 3 : BLACK</p>

<p><strong>3. Section 3</strong></p>

<p>Cell 4 : WHITE</p>

<p><strong>4. Section 4</strong></p>

<p>Cell 5 : RED</p>

<p>Cell 6 : BLUE</p>

<p>Cell 7 : BLACK
...</p>

<p>How can I achieve this ?</p>

<p>I know how to change color in <code>cellForRow</code> :         <code>cell.contentView.backgroundColor = [UIColor colorWithRed:119.0/255.0 green:221.0/255 blue:167.0/255 alpha:1.0f];</code></p>
