#pragma mark 保存操作
UIGraphicsBeginImageContextWithOptions(_drawView.bounds.size, YES, 0);
CGContextRef context=UIGraphicsGetCurrentContext();
[_drawView.layer renderInContext:context];
_imgView.image=UIGraphicsGetImageFromCurrentImageContext();
//-------------------------------------画图----------------------------------------------------------------------------------
CGContextRef context=UIGraphicsGetCurrentContext();
//设置线的颜色
[_lineColor setStroke];
//设置线的宽度
CGContextSetLineWidth(context, _lineWith);
NSMutableArray *array=(NSMutableArray*)obj;
//第一个坐标
CGContextMoveToPoint(context, [[obj objectAtIndex:0] CGPointValue].x, [[obj objectAtIndex:0] CGPointValue].y);
CGPoint point=[array[i] CGPointValue];
CGContextAddLineToPoint(context, point.x, point.y);
CGContextStrokePath(context);