title: multiple customTableViewCell using nib
body: <p>i'm trying create multiple custom tableViewCells using Swift. i've used an objective-c project to convert into swift code, which probably is the reason why its not working. i've created 2 UITableViewCell subclasses with a xib. Then i added the subclasses to the xib class.</p>
  
  <p>But when i register the nibs and try to show them in the tableView the tableView is empty. i've added connected the delegate to the uitableView</p>
  
  <h1>viewDidLoad</h1>
  
  <pre><code>    self.tableView?.registerNib(UINib(nibName: "TextViewCell", bundle: nil), forCellReuseIdentifier: "TextViewCell")
      self.tableView?.registerNib(UINib(nibName: "AttachViewCell", bundle: nil), forCellReuseIdentifier: "AttachViewCell")
  </code></pre>
  
  <h1>cellForRowAtIndexPath</h1>
  
  <pre><code>func tableView(tableView:UITableView!, cellForRowAtIndexPath indexPath:NSIndexPath!) -&gt; UITableViewCell! {
      var cell: UITableViewCell? = nil
  
  
      if indexPath.row == 0 {
  
  
          var  textCell:TextViewCell! = tableView.dequeueReusableCellWithIdentifier("TextViewCell") as? TextViewCell
  
          textCell.nameTextView.text = "Test"
  
          cell = TextViewCell()
      }
  
      if indexPath.row == 1 {
          var  attachCell:AttachViewCell! = tableView.dequeueReusableCellWithIdentifier("AttachViewCell") as? AttachViewCell
  
          attachCell.attachLabel.text = "Attach image"
  
  
          cell = AttachViewCell()
      }
  
  
  
  
      return cell
  }
  </code></pre>