Bug in UITableView: Why is the section header covered by an row after deleting an row?
- by mystify
When I delete a row like this, and then scroll a little bit, one of the rows of that section happens to cover the section header.
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath {
if (editingStyle == UITableViewCellEditingStyleDelete) {
[dataManager deleteValueAtIndex:indexPath.row];
[tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:indexPath] withRowAnimation:UITableViewRowAnimationFade];
}
}
Is there any solution to this?