delete row UITableView index issue

前端 未结 11 1712
遥遥无期
遥遥无期 2021-02-13 04:24

I\'m using the code below to delete a row in my tableview. First I delete the object from my array and then from the tableview using this code:

let i = IndexPath         


        
11条回答
  •  余生分开走
    2021-02-13 04:49

    If you want to delete tableview row from a custom button action except for tableview commit editingStyle delegate or any tableview delegate method, you have to call tableview reloadData to populate with updated index value.

提交回复
热议问题