How to Delete TableViewRow

You must Login before you can answer or comment on any questions.

If I have a tableviewrow with a button in it, how do I delete the tableviewrow when the button inside it is clicked? With tableView.deleteRow, you can only delete by index, and there doesn't seem to be a way to get the index from a tableviewrow object.

1 Answer

you could pass a custom parameter to the row and then use that to delete it

— answered 2 years ago by Chris Nelson
answer permalink
1 Comment
  • How would I do that? The deleteriw function still requires the index of the row.

    — commented 2 years ago by Robert Nay

Your Answer

Think you can help? Login to answer this question!