I am creating a task management app in Swift.
There is a screen displaying the task list using Tableview,
It is developed with the specification that the task can be deleted by pressing the button installed in the Cell.

Error message Developed until the

button was pressed and the indexpath of the corresponding cell was acquired and deleted.
If i refresh on the screen and call reloadData (), the deletion is reflected.

I'd like to automate this refresh process. Is there any way to call tableview's reloadData when it is deleted by cell?

  • Answer # 1

    It can be done by directly linking the button to the Controller of TableView.

Related articles