Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ios 表格视图单元格的样式分隔符_Ios_Xcode_Uitableview - Fatal编程技术网

Ios 表格视图单元格的样式分隔符

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

我的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 colorWithPatternImage:[UIImage imageNamed:@"dot.png"]];// you can also put image here
[cell.contentView addSubview:bottomBorderView];
它在iOS7中运行得很好,但自从我更新了Xcode并开始在iOS8上测试应用程序以来,边框一直显示不正确。我不知道是什么变化导致了这个问题。你滚动的次数越多,问题似乎越严重


我认为您的问题的解决方案就在这里->这解决了问题!谢谢。