答案 0 :(得分:1)
您可以将separator设置为none。然后在单元格中绘制一条需要一条线的线。
UIView *lineView = [[UIView alloc] initWithFrame:CGRectMake(0, cellHeight - 1 / [UIScreen mainScreen].scale, [UIScreen mainScreen].bounds.size.width, 1 / [UIScreen mainScreen].scale)];
// (1 / [UIScreen mainScreen].scale) : 1px width line.
lineView.backgroundColor = [UIColor blackColor];
[self addSubview:lineView];