title: UITableView button color issue
body: <p>I have some questions to answer with Yes or Not in a <code>UITableView</code>, each option (yes/no) is it's own button in the cell.</p>
  <p>First, I have to handle the click event, because I have to change button's <code>backgroundColor</code> on click and I have to add the clicked row to create another struct with the answers.</p>
  <p>My actual code is like this:</p>
  <pre><code>extension MyViewController: UITableViewDelegate{
      func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
          //click row
      }
  }
  
  extension MyViewController: UITableViewDataSource{
      func numberOfSections(in tableView: UITableView) -&gt; Int {
          return 1
      }
      
      func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return questions.count
      }
      
      func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
          let cell = tableView.dequeueReusableCell(withIdentifier: &quot;cellAnswers&quot;, for: indexPath) as! MyTableViewCell
          
          //iterate here? and how can i do that?
          
          cell.actionYes = {
              cell.buttonYes.backgroundColor = .blue
              cell.buttonNo.backgroundColor = .darkGray
          }
          
          cell.actionNot = {
              cell.buttonYes.backgroundColor = .darkGray
              cell.buttonNo.backgroundColor = .blue
          }
          
          let question = questions[indexPath.row]
          
          cell.question = question
          
          return cell
      }
  }
  </code></pre>
  <p>Like you see, I have clousures to handle click event and change backgroundColor, but if i click one button, the rest change too.</p>
  <p>and my TableViewCell:</p>
  <pre><code>import UIKit
  
  class MyTableViewCell: UITableViewCell{
      
      @IBOutlet weak var question: UILabel!
      @IBOutlet weak var buttonYes: UIButton!
      @IBOutlet weak var buttonNo: UIButton!
      
      var actionYes: (() -&gt; Void)? = nil
      var actionNo: (() -&gt; Void)? = nil
      
      @IBAction func answerYes(_ sender: Any) {
          actionYes?()
      }
      
      @IBAction func answerNo(_ sender: Any) {
          actionNo?()
      }
      
      var question: QuestionResponse!{
          didSet{
              updateUI()
          }
      }
      
      func updateUI(){
          
          question.text = question.value
          
      }
      
  }
  </code></pre>
  <p>I don't have any idea how to iterate the the cells to fill the correct color on buttons.</p>