I have a view that contains a UITableView. I'm able to show the delete button on the cell when the user swipes.
If the user touches the delete button a method will be triggered (this works fine). But if the user decides to not to delete the cell and he touches anywhere in the view to hide the delete button.
How can I detect that?
When the user taps outside the delete mark in a cell, your program should receive a call to tableView:didEndEditingRowAtIndexPath:
on the table view delegate.
[UITableViewCell showingDeleteConfirmation]
or
[UITableViewCell willTransitionToState:]
with UITableViewCellStateShowingDeleteConfirmationMask
as parameter
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With