UITableviewCell 去除底部分割线

设置tableView的背景颜色

self.tableView.backgroundColor = DefultBackGroundColor;

设置tableView的分割线的样式

self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

自定义cell重写setFrame方法

- (void)setFrame:(CGRect)frame{

frame.origin.y += 1;

frame.size.height -= 1;

[super setFrame:frame];

}

你可能感兴趣的:(UITableviewCell 去除底部分割线)