I have following code to draw horizontal line:
UIBezierPath *topLine = [UIBezierPath bezierPath];
[topLine moveToPoint:CGPointMake(0, topMargin + lineHeight * 2.0f)];
[[self getTopSeparatorLineColor] setStroke];
topLine.lineWidth = 1.0f;
[topLine addLineToPoint:CGPointMake(rect.size.width, topMargin + lineHeight * 2.0f)];
[topLine stroke];
It works, but line is "fat". I want to draw line just like UITableView separator..
Is it possible with UIBezierPath?