Ios 表格视图单元格的样式分隔符
我的willDisplayCell函数中有以下代码Ios 表格视图单元格的样式分隔符,ios,xcode,uitableview,Ios,Xcode,Uitableview,我的willDisplayCell函数中有以下代码 //bottom border UIView* bottomBorderView = [[UIView alloc] initWithFrame:CGRectMake(0, cell.frame.size.height-1, cell.frame.size.width, 1)];/// change size as you need. bottomBorderView.backgroundColor = [UIColor colorWithPa
//bottom border
UIView* bottomBorderView = [[UIView alloc] initWithFrame:CGRectMake(0, cell.frame.size.height-1, cell.frame.size.width, 1)];/// change size as you need.
bottomBorderView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"dot.png"]];// you can also put image here
[cell.contentView addSubview:bottomBorderView];
它在iOS7中运行得很好,但自从我更新了Xcode并开始在iOS8上测试应用程序以来,边框一直显示不正确。我不知道是什么变化导致了这个问题。你滚动的次数越多,问题似乎越严重
我认为您的问题的解决方案就在这里->这解决了问题!谢谢。