0

I have an app that allows a user to make a selection from a UITableView. I'm somewhat familiar with adding the ability to edit and delete them, but I was wondering if it is possible to delete the row based purely on selecting it? If so, does anyone know how the code to do so would look?

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Henry F
  • 4,960
  • 11
  • 55
  • 98

1 Answers1

1

In method didSelectedRowAtIndexPath delete element from datasource and than cell from tableView, there is a code for your problem delete row from tableView.

Community
  • 1
  • 1
edzio27
  • 4,126
  • 7
  • 33
  • 48