Skip to content

Instantly share code, notes, and snippets.

@mikeabdullah
Created June 26, 2014 11:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikeabdullah/83170260dfbc5e3e890f to your computer and use it in GitHub Desktop.
Save mikeabdullah/83170260dfbc5e3e890f to your computer and use it in GitHub Desktop.
Detecting if in editing mode, or just editing a single table row alternative
- (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath {
[super setEditing:YES animated:YES];
}
- (void)setEditing:(BOOL)editing animated:(BOOL)animated {
[super setEditing:editing animated:animated];
// Adjust toolbar etc. acordingly
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment