title: how to add Checkmark TableView Multiple Swift 3.0
body: <p>I want to make the user multiple choice (years) or choose (all) and the rest of the cells disappear (checkmark).
  I want the user can not cancel each (checkmark).</p>
  
  <p>This My Code :-</p>
  
  <pre><code>func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
  let cell = tableView.cellForRow(at: indexPath)
  cell?.accessoryType = .checkmark
   }
  
  func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -&gt; UITableViewCell { 
  let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) as! yearsCell 
  cell.years?.text = Years[indexPath.row]
  return cell }
  </code></pre>
  
  <p><img src="https://i.stack.imgur.com/GJIaO.jpg" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/HLLQE.jpg" alt="enter image description here"></p>