分割线高度计算小改动

This commit is contained in:
MengLiMing
2016-06-14 16:31:39 +08:00
parent 5eea29f9c0
commit edba6eb845
2 changed files with 1 additions and 1 deletions

View File

@@ -164,7 +164,7 @@
for (NSInteger i = 0; i < lineNum - 1; i ++) {
CAShapeLayer *line = [CAShapeLayer layer];
line.fillColor = linecolor.CGColor;
UIBezierPath *path = [UIBezierPath bezierPathWithRect:CGRectMake(self.frame.size.width/lineNum * (i + 1), 1, .5, self.frame.size.height)];
UIBezierPath *path = [UIBezierPath bezierPathWithRect:CGRectMake(self.frame.size.width/lineNum * (i + 1), 1, .5, self.frame.size.height - 1)];
line.path = path.CGPath;
line.hidden = NO;
[self.layer addSublayer:line];