title: UITableView set background color
body: <p>I change the background color of the UITableViewCells in the <em>tableView:cellForRowAtIndexPath</em> method</p>
  
  <pre><code>    if(indexPath.row % 2 == 0){
          cell.backgroundColor = ...
      } else{
          cell.backgroundColor = ...
      }
  </code></pre>
  
  <p>But that only change the color of the cell amount specified in <em>tableView:numberOfRowsInSection</em> (As seen in the attached picture, there are white cells after the first four)</p>
  
  <p>Is it possible to change the color of all cells that are displayed on screen?</p>
  
  <p><img src="https://i.stack.imgur.com/CZZ9E.png" alt="enter image description here"></p>