UIView * bottomLine = [[UIView alloc]initWithFrame:CGRectMake(0,self.contentSize.height-1, kScreenWidth, 2)];
[self addSubview:bottomLine];
bottomLine.backgroundColor = [UIColor whiteColor];
非常简单的办法,在tableView最后一个cell的位置添加一个白色的视图即可
UIView * bottomLine = [[UIView alloc]initWithFrame:CGRectMake(0,self.contentSize.height-1, kScreenWidth, 2)];
[self addSubview:bottomLine];
bottomLine.backgroundColor = [UIColor whiteColor];
非常简单的办法,在tableView最后一个cell的位置添加一个白色的视图即可
本文标题:IOS TableView去掉最后一个cell分割线简单方法
本文链接:https://www.haomeiwen.com/subject/xwwhottx.html
网友评论