Search code examples
iosobjective-cuitableviewuitableviewrowaction

How can I determine when a UITableViewCell's action buttons are shown and hidden?


Is there a delegate method or something that I can implement that allows me to do something when action buttons of my tableview cell is shown and hidden again?

Action buttons showing


Solution

  • The tableview delegate methods:

    -(void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath and -(void)tableView:(UITableView *)tableView didEndEditingRowAtIndexPath:(NSIndexPath *)indexPath does the trick.