Why does UITableView's swipe delete sometimes work fine & sometimes not?
问题 There is a UITableView on my view, I want to apply swipe-delete-mode rows of a certain section. What I have implemented is as follows: - (BOOL)tableView:(UITableView *)tableView canEditRowAtIndexPath:(NSIndexPath *)indexPath { NSLog(@">> canEditRowAtIndexPath"); if (indexPath.section == CanDeletedSection) { return YES; }else{ return NO; } } - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath { NSLog(@">>