From 14ab3bf6ab4b272e60f0e248ab2bb4269d448f57 Mon Sep 17 00:00:00 2001 From: kai60 Date: Mon, 28 Jun 2021 10:13:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=97=AA=E9=80=80=E5=8A=A0=E5=BC=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Ifish/views/HKPieChartView/HKPieChartView.m | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Ifish/views/HKPieChartView/HKPieChartView.m b/Ifish/views/HKPieChartView/HKPieChartView.m index 68dc8ac..2163c82 100755 --- a/Ifish/views/HKPieChartView/HKPieChartView.m +++ b/Ifish/views/HKPieChartView/HKPieChartView.m @@ -212,9 +212,17 @@ - (CAShapeLayer *)progressLayer { if (!_progressLayer) { _progressLayer = [CAShapeLayer layer]; - [self loadLayer:_progressLayer WithColor:self.progressColor]; - _progressLayer.lineCap = kCALineCapRound; - _progressLayer.strokeEnd = 0; + @try { + [self loadLayer:_progressLayer WithColor:self.progressColor]; + _progressLayer.lineCap = kCALineCapRound; + _progressLayer.strokeEnd = 0; + } @catch (NSException *exception) { + + } @finally { + + } + + } return _progressLayer; }