美文网首页
UITableviewCell 去除底部分割线

UITableviewCell 去除底部分割线

作者: 冷月花 | 来源:发表于2016-07-14 11:09 被阅读92次

设置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 去除底部分割线

      本文链接:https://www.haomeiwen.com/subject/rquejttx.html