David Bleicher

Change countingLabel to show updated percentage instead of absolute value

@@ -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;