NSInternalInconsistencyException tableVer eliminación de fila

Swift 3.0 iOS 10.x

Usando este código para tratar de eliminar una fila en una tabla ...

override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
    if editingStyle == UITableViewCellEditingStyle.delete {
        print("DELETE \(indexPath)")
        self.tableView.deleteRows(at: [indexPath], with: UITableViewRowAnimation.automatic)


    }
}

Esto falla con el mensaje de error?

2017-05-29 13:36:23.843228+0200[939:576777] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid update: invalid number of rows in section 0.  The number of rows contained in an existing section after the update (9) must be equal to the number of rows contained in that section before the update (9), plus or minus the number of rows inserted or deleted from that section (0 inserted, 1 deleted) and plus or minus the number of rows moved into or out of that section (0 moved in, 0 moved out).'

¿Qué suena bastante justo solo que este es el código de la placa de la caldera? ¿Estoy haciendo poco más que hacer clic en el botón rojo?

Sí, hay 3 filas aquí ... en mi código que se estrelló había 9.

¿Qué me he perdido aquí? Imprimí el indexPath devuelto aquí y, de hecho, estaba mal, pero espera, no lo configuré. Este método lo hizo?

BORRAR [0, 3]

Respuestas a la pregunta(1)

Su respuesta a la pregunta