0

I have the following code in my willDisplayCell function

//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];

It worked just fine in iOS7, but ever since I updated Xcode and started testing the app on iOS8 the borders have been displaying incorrectly. I cant figure out what changed that is causing the issue. The problem seems to get worse the more you scroll.

enter image description here

Tyler
  • 109
  • 1
  • 10

0 Answers0