title: Table view did select method to handle check box image
body: <p>I have an table view with three cell which contains the label and one image (check box).Now when ever i select any cell.That particular cell image (check box) alone needs to get <code>tick.png</code>. And remaining two cell image should be <code>untick.png</code>.</p>
  
  <p>But now if i select first cell then the first cel image get as tick.png.Then if i select second and third cell.That cell image also getting <code>tick.png</code></p>
  
  <p>But i need only one image alone needs to <code>tick.png</code>.Which ever table view cell i am selecting that particular cell image alone needs to be <code>tick.png</code>.And remaining two cell image should be <code>untick.png</code>.</p>
  
  <p>My code :</p>
  
  <pre><code>var Data: [String] = ["First","Second","Third"]
  
  func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      if self.Data.count &gt; 0{
          return self.Data.count
      }
      return 0
  }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! ViewCell
  
      cell.Lbl.text = self.aData[indexPath.row]
  
      return cell
  }
  
  func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
      let cell = tableView.cellForRow(at: indexPath) as! suggestionCell
      cell.suggestionImg.image = UIImage(named: "tick")
  
  
  }
  </code></pre>