小编Pav*_*lov的帖子

iOS 11/Xcode 9:UITableViewCell白色背景在删除时闪烁

在iOS 11设备上删除UITableViewCell意外的白色背景出于某种原因,但在故事板中所有背景颜色都设置为蓝色(在iOS10上正常工作).

- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
    if (editingStyle == UITableViewCellEditingStyleDelete)
    {
        [self.bookmarks removeObjectAtIndex:indexPath.row];            
        [self.tableView deleteRowsAtIndexPaths:@[indexPath] withRowAnimation:UITableViewRowAnimationFade];
    }
}
Run Code Online (Sandbox Code Playgroud)

尝试了所有类型的UITableViewRowAnimation,并没有解决问题.

在此输入图像描述

uitableview ios11 xcode9

11
推荐指数
1
解决办法
1429
查看次数

标签 统计

ios11 ×1

uitableview ×1

xcode9 ×1