iOS 7 - 如何为特定部分将单元格分隔符设置为无,为其他部分设置单行

时间:2013-09-24 05:27:36

标签: objective-c tableview ios7

我想将空视图设置为单元格或没有特定部分的分隔线

if(section == 1)
self.documentTable.separatorStyle = UITableViewCellSelectionStyleNone;
else
self.documentTable.separatorStyle = UITableViewCellSeparatorStyleSingleLine;

如果我喜欢上面那么它隐藏了所有细胞的分隔线。请帮助我。在iOS 6.0中我做的就像,

 buttonCell.backgroundView = [[UIView alloc] initWithFrame:CGRectZero];

1 个答案:

答案 0 :(得分:0)

我们可以添加细胞层的宽度和颜色。这样它就会为桌子提供圆角。它将解决问题..

相关问题