From 74df3f9aa85860d86cac507abc679d42ad26639b Mon Sep 17 00:00:00 2001 From: zhengjun <330172829@qq.com> Date: Sat, 1 Apr 2017 15:53:26 +0800 Subject: [PATCH] fixBug: wrong center point calculation. --- Classes/ProgressViews/M13ProgressViewRing.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/ProgressViews/M13ProgressViewRing.m b/Classes/ProgressViews/M13ProgressViewRing.m index a2bbb0c..40b0f0d 100755 --- a/Classes/ProgressViews/M13ProgressViewRing.m +++ b/Classes/ProgressViews/M13ProgressViewRing.m @@ -467,7 +467,7 @@ - (void)drawBackground //Create parameters to draw background float startAngle = - (float)M_PI_2; float endAngle = (float)(startAngle + (2.0 * M_PI)); - CGPoint center = CGPointMake(self.bounds.size.width / 2.0, self.bounds.size.width / 2.0); + CGPoint center = CGPointMake(self.bounds.size.width / 2.0, self.bounds.size.height / 2.0); CGFloat radius = (self.bounds.size.width - _backgroundRingWidth) / 2.0; //If indeterminate, recalculate the end angle