Bug in UITableView: Why is the section header covered by an row after deleting an row?

Posted by mystify on Stack Overflow See other posts from Stack Overflow or by mystify
Published on 2010-04-18T10:47:50Z Indexed on 2010/04/18 10:53 UTC
Read the original article Hit count: 307

Filed under:
|

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?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uitableview