title: How to select a row programmatically in table View ? (Swift 4.0)
body: <p>I have a tableViewController, my data source work well, but i can't select a row programmatically.</p>
  
  <p>I have tried: </p>
  
  <pre><code>class DocumentTableViewController: UITableViewController {
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          tableView.selectRow(at: IndexPath(row: 0, section: 0), animated: true, scrollPosition: UITableViewScrollPosition(rawValue: 0)!)
       }
  }
  </code></pre>
  
  <p>when I run, the tableView selects nothing.
  How can I solve that ?</p>