title: How to change each uitableviewcell background color
body: <p>I want to change each cell background color in order.</p>
  
  <p>This is my colors.And I just want to show them as shown in image.</p>
  
  <p>I'm showing it with random colors now.But I want to show them in order.</p>
  
  <pre><code>var cellColors = ["F28044","F0A761","FEC362","F0BB4C","E3CB92","FEA375"]
  func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
          let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! GroupTableViewCell
          let randomColor = Int(arc4random_uniform(UInt32(self.cellColors.count)))
          cell.contentView.backgroundColor = UIColor(hexString: self.cellColors[randomColor])
      }
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/DVCcT.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DVCcT.png" alt="enter image description here"></a></p>