title: how to deselect uitableview cells when app is starting in swift
body: <p>This is My Code</p>
  
  <pre><code>override func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
      tableView.deselectRowAtIndexPath(indexPath, animated: true)
      let key = sortedKeys[indexPath.row]
      if (selectedTypes!).contains(key) {
          selectedTypes = selectedTypes.filter({$0 != key})
      } else {
          selectedTypes.append(key)
      }
  
      tableView.reloadData()
  
  }
  </code></pre>
  
  <p>I am deselecting cells on second line but it's not working </p>