【发布时间】:2015-05-29 00:40:29
【问题描述】:
我有一个UITableViewCell,我正在尝试使 1 个cells 分隔符的高度大于其他分隔符。我尝试了以下方法:
UIView* separator = [[UIView alloc] initWithFrame:CGRectMake(0, 0, cell.frame.size.width, 2)];
separator.backgroundColor = [UIColor blackColor];
[cell.contentView addSubview:separator];
这可行,但结果如下:
所有cells 的分隔线都设置为红色。在上图中,您可以看到黑色上方的红色。如何删除该单元格的红色?
我试过了:cell.separatorInset = UIEdgeInsetsZero; 并没有做任何事情。
【问题讨论】:
-
请通过下面的链接你会得到最好的解决方案...! stackoverflow.com/questions/44711612/…
标签: ios objective-c uitableview