When the user taps on Edit or Done in the top left corner of a UITableViewController
, I need to change some things (in addition to what Apple does automatically).
I override setEditing()
, do my visual changes there. Works fine.
The method setEditing()
of the UITableViewController
is also called, when the user swipes left on a UITableViewCell
.
Here comes the problem: like Apple, I need to do important things differently, when a user swipes left on a cell.
How do I know which user action (tapping on edit or swiping left on a cell) caused the setEditing()
call?