Subviews are not cropped to scroll left to remove UITableViewCell

I'm just trying to scroll left and click the delete button to remove the UITableViewCell.

When touched, the cell expands / contracts. The full cell size was designed using Xcode, and I have "Movable Clips" checked to prevent the bottom of the cell from appearing in a compressed state.

However, when I scroll left on the compressed cell (to show the delete button), the bottom of the cell appears again! I was looking for a solution but have not found it yet. Any help would be greatly appreciated. Thank.

+4
source share
1 answer

, . . SO.

, cell.contentView.clipsToBounds NO, .

- (void)tableView:(UITableView *)tableView willBeginEditingRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView cellForRowAtIndexPath:indexPath];
    cell.contentView.clipsToBounds = YES;
}

, iOS8.

+3

All Articles