CAShapeLayer *lineShape = nil;
CGMutablePathRef linePath = nil;
linePath = CGPathCreateMutable();
lineShape = [CAShapeLayer layer];
lineShape.lineWidth = 0.4f;
lineShape.lineCap = kCALineCapRound;;
lineShape.strokeColor = [ToolList getColor:@"cccccc"].CGColor;
CGFloat x = 0; CGFloat y = 0.4f;
CGFloat toX = 320; CGFloat toY = 0.4f;
CGPathMoveToPoint(linePath, NULL, x, y);
CGPathAddLineToPoint(linePath, NULL, toX, toY);
lineShape.path = linePath;
CGPathRelease(linePath);
[cell.layer addSublayer:lineShape];
303

被折叠的 条评论
为什么被折叠?



