Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Detecting if in editing mode, or just editing a single table row
- (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath {
_isEditingIndividualRow = YES;
[super tableView:tableView willBeginEditingRowAtIndexPath:indexPath];
- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];
BOOL inEditingMode = editing && !_isEditingIndividualRow;
if (inEditingMode) // ...set up toolbar accordingly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.