title: dequeReusableCell is causing new cells to use old styling?
body: <p>I have a <code>tableView</code> that is set up something like this: </p>
  
  <pre><code>func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell = tableView.dequeueReusableCellWithIdentifier(textCellIdentifier, forIndexPath: indexPath) as! CommentCell
  
      let row = indexPath.row
      let cellComment = Comments[row]
  
      // Remove serperator
      self.tableView.separatorStyle = UITableViewCellSeparatorStyle.None
  
      // Set comment content
      cell.commentText.text = Comments[row].content
  
      // Set level indicator
      var width = CGFloat(Comments[row].level * 5)
      let widthConstraint = NSLayoutConstraint(item: cell.levelIndicator, attribute: NSLayoutAttribute.Width, relatedBy: NSLayoutRelation.Equal, toItem: nil, attribute: NSLayoutAttribute.NotAnAttribute, multiplier: 1, constant: width)
      cell.levelIndicator.addConstraint(widthConstraint)
  
      return cell
  }
  </code></pre>
  
  <p>Comments is an array of Comment structs and setting the <code>commentText</code> <code>TextView</code> as the <code>Comment[row].content</code> works as planned.</p>
  
  <p>My issue appears with the level indicator section of the cell. I am adjusting a view on the left of the cell that expands based on how far down the comment tree a certain comment is.</p>
  
  <p>When the comments are first loaded things look <a href="http://i.stack.imgur.com/g9YJJ.png" rel="nofollow">like this</a></p>
  
  <p>As you can see the orange view on the left increases correctly and everything looks great. As soon as you scroll down however things start to <a href="http://i.stack.imgur.com/FEfIU.png" rel="nofollow">fall apart</a></p>
  
  <p>From what I understand from my research online is the table is reusing cells in order to improve performance. These reused cells change the text attributes just fine however they retain the width of the level indicator. Once you start scrolling up and down the cells become a complete mess.</p>
  
  <p>I am unsure how to clear the previous width when the cell is being reused. Any ideas?</p>