Asks the data source to commit the insertion or deletion of a specified row in the receiver.
데이타 소스에게 요청한다./ 메소드 호출대상에 있는 지정된 row에추가와 삭제를 커밋하도록
optional func tableView(_ tableView: UITableView,
commit editingStyle: UITableViewCell.EditingStyle,
forRowAt indexPath: IndexPath)
The table-view object requesting the insertion or deletion.
table-view객체/추가나 삭제를 요청하는
The cell editing style corresponding to a insertion or deletion requested for the row specified by indexPath.
cell editing style/ insertion이나 deletion과 일치하는/ indexPath로 부터 지정된 row에서 요청된
Possible editing styles are UITableViewCell.EditingStyle.insert or UITableViewCell.EditingStyle.delete.
An index path locating the row in tableView.
tableView에서 row가 위치한 index path
When users tap the insertion (green plus) control or Delete button associated with a UITableViewCell object in the table view, the table view sends this message to the data source, asking it to commit the change.
사용자가 insertion(연두색 플러스)를 탭하거나 delete button을 탭하면/ table view안에 있는 UITableViewCell객체와 연관된/ table view는 데이타 소스에게 이 메시지를 보낸다./ 변화를 커밋하도록 요청하는 메세지
(If the user taps the deletion (red minus) control, the table view then displays the Delete button to get confirmation.)
(만약 사용자가 삭제컨트롤(적색 마이너스)를 탭하면, table view는 삭제 버튼이 표시되어 확인을 받는다.
The data source commits the insertion or deletion by invoking the UITableView methods insertRows(at:with:) or deleteRows(at:with:), as appropriate.
데이타 소스는 커밋한다./ 추가 또는 삭제를/ UITableView method insertRows(at:with:)나 deleteRows(at:with:)를 적절하게 호출함으로써
To enable the swipe-to-delete feature of table views (wherein a user swipes horizontally across a row to display a Delete button), you must implement this method.
table views에서 밀어서 삭제하는 특징을 가능하게 하기위해 당신은 이 메소드를 구현해야한다.(사용자가 수평으로 스와이프하는 곳에서 딜리트버튼을 보여준다.)
You should not call setEditing(:animated:) within an implementation of this method.
당신은 setEditing(:animated:)를 이 메소드 구현내에서 호출하면 안된다.
If for some reason you must, invoke it after a delay by using the perform(:with:afterDelay:) method.
만약 몇가지 이유로 반드시 필요하다면. perform(:with:afterDelay:)메소드를 사용해서 delay이후에 호출해라.