UITableView allowsSelectionDuringEditing
@property(nonatomic) BOOL allowsSelectionDuringEditing
Discussion of [UITableView allowsSelectionDuringEditing]
If the value of this property is YES , users can select rows during editing. The default value is NO. If you want to restrict selection of cells regardless of mode, use allowsSelection.
UITableView allowsSelectionDuringEditing example.
UITableView didSelectRow while editing?
Set table.allowsSelectionDuringEditing = YES;
Set table.allowsSelectionDuringEditing = YES;
Example of [UITableView allowsSelectionDuringEditing].
- (void)viewDidLoad {
[tableView setEditing:YES animated:NO];
tableView.allowsSelectionDuringEditing = YES;
}
[tableView setEditing:YES animated:NO];
tableView.allowsSelectionDuringEditing = YES;
}