title: Why can't I select TableView cells?
body: <p>This is the flow of my app:</p>
  
  <p>First, the TableView is set to hidden. There is a UITextField in the center of the screen. When the user types something and hits Go, this code is run:</p>
  
  <pre><code>self.view.layoutIfNeeded()
  UIView.animateWithDuration(0.5, animations: {
  
      self.textFieldConstraint.constant = -230
      self.tableView.hidden = false
      self.goButton.hidden = true
      self.view.layoutIfNeeded()
  
  }, completion: nil)
  </code></pre>
  
  <p>At this point, the tableview is populated. When a row is selected, I need to manipulate the data that is populating it. </p>
  
  <p>However, <strong>absolutely nothing happens when I tap a cell.</strong></p>
  
  <p>What am I doing wrong?</p>
  
  <p>My TableView code is here:</p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
  
      let cell: SearchResultsTableViewCell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath) as! SearchResultsTableViewCell
  
      cell.label.text = searchResultsNames[indexPath.row]
  
      return cell
  }
  
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
  
      return searchResultsUrls.count
  
  }
  
  func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
  
      print("HELLO")
  
  }
  </code></pre>
  
  <p>And, I have set the dataSource and delegate properly.</p>
  
  <p>I also want to clarify that the tableView populates and scrolls properly; it just won't do anything when I tap a cell.</p>
  
  <p><strong>Update:</strong></p>
  
  <p>I've discovered that for some reason, I can select the cells when I press and hold them. It is not what I want, so does anybody know how to fix this?</p>