I have a UITableView
in the Master of a Master-Detail setup. Users can interact with the cell through UITableViewRowAction
, or search using a given search bar.
When the user interacts with the search bar or slides the cell to the left, the cell is deselected. I need to be notified when a cell is deselected.
I tried func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
but it does not seem to respond to situations like these.
override func tableView(_ tableView: UITableView, didDeselectRowAt indexPath: IndexPath) {
print("Cell Deselected")
}
This never executed on the conditions I've given above, but it does get executed only when a different item in the tableView
is selected, which is not what I need.