_height = self.frame.size.height;
_width = self.frame.size.width;
//圆心
self.circleCenter = CGPointMake(_width/2.0, _height/2.0);
//线条宽度
CGFloat lineWidth = 10.0;
//半径
self.outerCircleRadius = (_width-lineWidth)/2;
CAShapeLayer *outCircle = [CAShapeLayer new];
outCircle.path = [UIBezierPath bezierPathWithArcCenter:CGPointMake(0,0) radius:self.outerCircleRadius startAngle:(0.75*M_PI) endAngle:(0.25*M_PI) clockwise:YES].CGPath;
outCircle.strokeColor = [UIColor colorWithHexString:@"008000"].CGColor;
outCircle.fillColor = [UIColor clearColor].CGColor; //这里不设为clearColor,渐变色就不会显示为圆圈
outCircle.lineWidth = lineWidth;
outCircle.position = self.circleCenter;
[self.layer addSublayer:outCircle];
CALayer *gradientLayer = [CALayer layer];
CAGradientLayer *gra