Merge pull request #221 from dbleicher/CircleUpdateBug1
Make countingLabel show updated percent instead of absolute value
Showing
1 changed file
with
1 additions
and
1 deletions
| @@ -228,7 +228,7 @@ displayCountingLabel:(BOOL)displayCountingLabel | @@ -228,7 +228,7 @@ displayCountingLabel:(BOOL)displayCountingLabel | ||
| 228 | [_circle addAnimation:pathAnimation forKey:@"strokeEndAnimation"]; | 228 | [_circle addAnimation:pathAnimation forKey:@"strokeEndAnimation"]; |
| 229 | 229 | ||
| 230 | if (_displayCountingLabel) { | 230 | if (_displayCountingLabel) { |
| 231 | - [self.countingLabel countFrom:fmin([_current floatValue], [_total floatValue]) to:fmin([current floatValue], [total floatValue]) withDuration:self.duration]; | 231 | + [self.countingLabel countFrom:fmin([_current floatValue], [_total floatValue]) to:[current floatValue]/([total floatValue]/100.0) withDuration:self.duration]; |
| 232 | } | 232 | } |
| 233 | 233 | ||
| 234 | _current = current; | 234 | _current = current; |
-
Please register or login to post a comment