title: Swift / UITableViewCell: Add disclosure indicator, when entering editing mode
body: <p>I have a custom UITableViewCell class and I want it to show a disclosure indicator, when entering edit mode.</p>
  
  <p>This is my approach:</p>
  
  <pre><code>  func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -&gt; UITableViewCell {
      let cell: CustomCellClass = tableView.dequeueReusableCellWithIdentifier("Cell", forIndexPath: indexPath) as! CustomCellClass
  
      cell.counterTitle.text = "Cell Title"
  
      if self.tableView.editing {
          cell.accessoryType = UITableViewCellAccessoryType.DisclosureIndicator
      }
      return cell
  
  }
  </code></pre>
  
  <p>I think I found an answer here, but I have difficulties with translating it into swift: <a href="https://stackoverflow.com/questions/10393026/redrawing-uitableviewcell-when-entering-exiting-edit-mode">link</a></p>
  
  <p>Do I need a 2nd custom cell class to solve this?</p>
  
  <p>Thanks</p>