Yifei Zhou

fixed layer position problem

@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 CGFloat endAngle = clockwise ? -90.01f : 270.01f; 33 CGFloat endAngle = clockwise ? -90.01f : 270.01f;
34 34
35 _lineWidth = @8.0f; 35 _lineWidth = @8.0f;
36 - UIBezierPath *circlePath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.center.x, self.center.y) 36 + UIBezierPath *circlePath = [UIBezierPath bezierPathWithArcCenter:CGPointMake(self.bounds.size.width/2.0f, self.bounds.size.height/2.0f)
37 radius:(self.frame.size.height * 0.5) - [_lineWidth floatValue] 37 radius:(self.frame.size.height * 0.5) - [_lineWidth floatValue]
38 startAngle:DEGREES_TO_RADIANS(startAngle) 38 startAngle:DEGREES_TO_RADIANS(startAngle)
39 endAngle:DEGREES_TO_RADIANS(endAngle) 39 endAngle:DEGREES_TO_RADIANS(endAngle)