title: Dynamic UITableCellView height with cell indicator
body: <p>This question is related to another question of mine which was solved: <strong><a href="https://stackoverflow.com/questions/26752645/dynamic-uitablecellview-height">Dynamic UITableCellView height</a></strong></p>
  
  <p>I wanted to achieve a dynamic cell height, which is working using this code:</p>
  
  <pre><code>import UIKit
  
  class MyTableViewController: UITableViewController {
  
      var entries:Array&lt;String&gt; = [String]()
  
      override func viewDidLoad() {
          super.viewDidLoad()
  
          var i = 0
          while i &lt; 20 {
              entries.append("\(i) Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor")
              i++;
          }
  
          self.tableView.rowHeight = UITableViewAutomaticDimension
      }
  
      override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -&gt; Int {
          return self.entries.count
      }
  
      override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
          //ask for a reusable cell from the tableview, the tableview will create a new one if it doesn't have any
          let cell = self.tableView.dequeueReusableCellWithIdentifier("basic_cell", forIndexPath: indexPath) as UITableViewCell
  
          var label = cell.viewWithTag(13)
  
          if let unwrappedLabel = label as? UILabel {
              unwrappedLabel.text = self.entries[indexPath.row]
          }
  
          return cell
      }
  }
  </code></pre>
  
  <p>However when I add the disclosure indicator to each cell</p>
  
  <pre><code>cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
  </code></pre>
  
  <p>I get this result:</p>
  
  <p><img src="https://i.stack.imgur.com/RMMhG.png" alt="enter image description here"></p>
  
  <p>left with indicator and right without.</p>
  
  <p>You can checkout the github repo of this test project: <a href="https://github.com/ArtworkAD/DynamicCellTest" rel="nofollow noreferrer">https://github.com/ArtworkAD/DynamicCellTest</a></p>
  
  <p>Any ideas whats wrong? I am using swift with xcode 6.1 and iOS8.1</p>