Showing
1 changed file
with
2 additions
and
1 deletions
| @@ -95,6 +95,7 @@ | @@ -95,6 +95,7 @@ | ||
| 95 | 95 | ||
| 96 | -(void)strokeChart | 96 | -(void)strokeChart |
| 97 | { | 97 | { |
| 98 | + UIGraphicsBeginImageContext(self.frame.size); | ||
| 98 | 99 | ||
| 99 | UIBezierPath *progressline = [UIBezierPath bezierPath]; | 100 | UIBezierPath *progressline = [UIBezierPath bezierPath]; |
| 100 | 101 | ||
| @@ -144,7 +145,7 @@ | @@ -144,7 +145,7 @@ | ||
| 144 | 145 | ||
| 145 | _chartLine.strokeEnd = 1.0; | 146 | _chartLine.strokeEnd = 1.0; |
| 146 | 147 | ||
| 147 | - | 148 | + UIGraphicsEndImageContext(); |
| 148 | } | 149 | } |
| 149 | 150 | ||
| 150 | 151 |
-
Please register or login to post a comment