UITableViewCell透明分离器
我确实喜欢跟随UITableViewCell透明分离器,uitableview,Uitableview,我确实喜欢跟随 tableview.separatorStyle = UITableViewCellSeparatorStyleNone; 然而,当我添加新行时,分隔符将显示如下图所示。 如何在UITableViewCell中删除分隔符?我知道了 UIView *backView = [[UIView alloc] initWithFrame:CGRectZero]; backView.backgroundColor = [UIColor clearColor]; tableview.bac
tableview.separatorStyle = UITableViewCellSeparatorStyleNone;
然而,当我添加新行时,分隔符将显示如下图所示。
如何在UITableViewCell中删除分隔符?我知道了
UIView *backView = [[UIView alloc] initWithFrame:CGRectZero];
backView.backgroundColor = [UIColor clearColor];
tableview.backgroundView = backView;
[backView release];
只是因为我找到了另一种方式才发帖 我使用UITableView.separatorColor属性并将颜色设置为单元格的背景色
这将使那些使用默认单元格属性的用户更容易操作我在ios 9.1上也有同样的问题