title: using editActionsForRowAtIndexPath to delete a row "UITableView internal bug"
body: <p>I need to create a action in editActionsForRowAtIndexPath to delete a row in a table. Following some research on the internet I came to this code:</p>
  
  <pre><code>func tableView(tableView: UITableView, editActionsForRowAtIndexPath indexPath: NSIndexPath) -&gt; [UITableViewRowAction]? {
  
  
          let remove = UITableViewRowAction(style: UITableViewRowActionStyle.Destructive, title: "Remover", handler: { (action: UITableViewRowAction, indexPath: NSIndexPath) -&gt; Void in
              self.tableData.removeObjectAtIndex(indexPath.row)
              tableView.deleteRowsAtIndexPaths([indexPath], withRowAnimation: .Automatic)
  
          })
  
          return [remove]
      }
  </code></pre>
  
  <p>but now I get this error</p>
  
  <blockquote>
    <p>UITableView internal bug: unable to generate a new section map with
    old section count: 1 and new section count: 0</p>
  </blockquote>