title: UITableView cells not updating in Swift
body: <p>I'm trying to set the text of a cell in a UITableView inside of a UIViewController and the text is not being updated. Also, nothing gets printed even though I have two print statements, so it seems like the functions are not being called. Here is my code: </p>
  
  <pre><code>class HomePageViewController: UIViewController, UITextFieldDelegate, UITableViewDelegate {
  @IBOutlet weak var flaggedTable: UITableView!
  @IBOutlet weak var recentTable: UITableView!
  
  var flaggedSerials = [DataCell]()
  var recentlyViewedSerials = [DataCell]()
  
  override func viewDidLoad() {
      super.viewDidLoad()
  
      addSerial("FCGPR0TUG07P", status: "Shipped", issues: 6, reworks: 2, index: 0, flagged: false)    
  }    
  
  func addSerial(serial: String, status: String, issues: Int, reworks: Int, index: Int, flagged: Bool)
  {
      var currentSerial = DataCell()
  
      currentSerial.serial = serial
      currentSerial.status = status
      currentSerial.issues = "\(issues) Reported Issues"
      currentSerial.reworks = "\(reworks) Reported Reworks"
      currentSerial.index = index
  
      if flagged == true {
          flaggedSerials.append(currentSerial)
      }
      else {
          recentlyViewedSerials.append(currentSerial)
      }
  }
  
  func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          println(recentlyViewedSerials.count) // This line does not get printed
          return recentlyViewedSerials.count
      }
  
  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier("FlaggedCell", forIndexPath: indexPath) as! UITableViewCell
      addSerial("FCGPR0TUG07P", status: "Shipped", issues: 6, reworks: 2, index: 0, flagged: false)
      println(recentlyViewedSerials[indexPath.row].serial) // This line does not get printed
      cell.textLabel?.text = recentlyViewedSerials[indexPath.row].serial
  
      return cell
      }
  }
  </code></pre>