title: UITableViewCells not displaying first time
body: <p>I'm trying to create an autocompleter using iOS 8, Swift and Xcode 6.3</p>
  
  <p>I have a problem that I'm trying to solve, but I gave up... I hope someone can help here. The problem is that (custom) <code>UITableViewCell</code>'s are not displaying when the initial <code>dataSource</code> is empty. When adding data to <code>datasource</code> and reloading the <code>tableView</code>, the cells SHOULD display, but they don't... At least, the first time they don't... A second time, they DO... When I initialize the table with non-empty data, the problem doesn't occur.  I guess something goes wrong with <code>dequeueReusableCellWithIdentifier</code>. In beginning, no reusable cells are found, or something. But I don't know why...</p>
  
  <p>Relevant code, in ViewController.swift:</p>
  
  <pre><code>// filteredWords is a [String] with zero or more items
  
  @IBAction func editingChanged(sender: UITextField) {
      autocompleteTableView.hidden = sender.text.isEmpty
      filteredWords = dataManager.getFilteredWords(sender.text)
      refreshUI()
  }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("Cell") as! AutocompleteTableViewCell
      cell.title.text = filteredWords[indexPath.row]
      return cell
  }
  
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
      return filteredWords.count
  }
  
  func refreshUI() {
      self.autocompleteTableView.reloadData()
  }
  </code></pre>
  
  <p>I created a sample project on github:</p>
  
  <p><a href="https://github.com/dirkpostma/swift-autocomplete" rel="nofollow">https://github.com/dirkpostma/swift-autocomplete</a></p>
  
  <p>And a movie on YoutTube to show what goes wrong:</p>
  
  <p><a href="https://www.youtube.com/watch?v=ByMsy4AaHYI" rel="nofollow">https://www.youtube.com/watch?v=ByMsy4AaHYI</a></p>
  
  <p>Can anyone look at it and spot the bug...?</p>
  
  <p>Thanks in advance!</p>