Commit 087bb064 authored by huanglu's avatar huanglu

update

parent 2cf79917
...@@ -65,7 +65,7 @@ NSString *const kLFDrawViewData = @"LFDrawViewData"; ...@@ -65,7 +65,7 @@ NSString *const kLFDrawViewData = @"LFDrawViewData";
- (void)customInit - (void)customInit
{ {
_lineWidth = 5.f; _lineWidth = 4.f;
_lineColor = [UIColor redColor]; _lineColor = [UIColor redColor];
_slayerArray = [@[] mutableCopy]; _slayerArray = [@[] mutableCopy];
_lineArray = [@[] mutableCopy]; _lineArray = [@[] mutableCopy];
...@@ -109,7 +109,6 @@ NSString *const kLFDrawViewData = @"LFDrawViewData"; ...@@ -109,7 +109,6 @@ NSString *const kLFDrawViewData = @"LFDrawViewData";
UITouch *touch = [touches anyObject]; UITouch *touch = [touches anyObject];
CGPoint point = [touch locationInView:self]; CGPoint point = [touch locationInView:self];
//设置线宽 //设置线宽
path.lineWidth = 4.0f;
path.lineCapStyle = kCGLineCapRound; //线条拐角 path.lineCapStyle = kCGLineCapRound; //线条拐角
path.lineJoinStyle = kCGLineJoinRound; //终点处理 path.lineJoinStyle = kCGLineJoinRound; //终点处理
[path moveToPoint:point]; [path moveToPoint:point];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment