This is similar to questions that are asking how to swipe/delete without confirmation:
UITableView swipe to delete with no confirmation
My tableview has cells with UITableViewCellEditingStyleDelete set. When the tableview is in editing mode, the cells display a red circle icon with a '-' inside. To delete the cell, the user taps the red circle, and a Delete button appears. The user must then tap Delete which triggers tableView:commitEditingStyle:forRowAtIndexPath:
.
Some of my rows support UITableViewCellEditingStyleInsert. In this scenario the cells display a green circle icon with a '+' inside. Tapping the circle invokes tableView:commitEditingStyle:forRowAtIndexPath:
immediately.
I'd like to have tableView:commitEditingStyle:forRowAtIndexPath:
invoked immediately when the user taps the initial red-circle icon. That is, no delete-button step.
Any ideas?
Is there a way to provide custom editing controls that slide in from the left like delete/insert? If so, perhaps I could use this mechanism?