title: Table View ReloadData function not triggering cellForRowAtIndexPath Swift
body: <p>I have seen similar questions asked here but none are very helpful to me specifically.</p>
  
  <p>I am implementing a search bar in my table view and it looks like all is well and there aren't any errors. I have looked through the code a few times and can't find any mistakes. So I began to debug.</p>
  
  <p>Here is my Search function:</p>
  
  <pre><code>func searchBar(searchBar: UISearchBar, textDidChange searchText: String) {
  
      var filtered:[Room] = filterz(rooms, txt: searchText)
  
      //println(filtered.count)
  
      if(filtered.count == 0){
          searchActive = false
      } else {
          searchActive = true
      }
  
      self.tView.reloadData()
  }
  </code></pre>
  
  <p>I can see that this is working perfectly up as it is printing out the correct count.
  However I'm unsure about the reloadData function.
  I figured that it would trigger the cellForRowAtIndexPath function which is here:</p>
  
  <pre><code>func  tableView(tableView:UITableView,cellForRowAtIndexPathindexPath:NSIndexPath) -&gt; UITableViewCell {
  
      let cell = tableView.dequeueReusableCellWithIdentifier("RoomCell", forIndexPath: indexPath) as! UITableViewCell
  
      var room:Room = rooms[indexPath.row]
  
      if(searchActive){
          room = filtered[indexPath.row]
      }
  
      if let nameLabel = cell.viewWithTag(200) as? UILabel{
  
          nameLabel.text = room.name
          println(room.name)
  
      }
  
      if let sizeLabel = cell.viewWithTag(201) as? UILabel{
  
          sizeLabel.text = room.size
          println(room.size)
  
      }
  
      if let vacLabel = cell.viewWithTag(202) as? UILabel{
  
          vacLabel.text = room.vacant
          println(room.vacant)
  
      }
  
      if let taskIm = cell.viewWithTag(203) as? UIImageView{
  
          taskIm.image = UIImage(named: room.imagename)
      }
  
      return cell
  } 
  </code></pre>
  
  <p>As you can see I have put in print statements to debug, and it is printing nothing. Is this because the function is not triggered or because there is a problem with my code?</p>
  
  <p>If so, can anyone locate it? All I know for sure is that up till the <code>reloadData()</code> function call everything is working perfectly.</p>