mrackwitz / MRProgress

Collection of iOS drop-in components to visualize progress
MIT License
2.55k stars 306 forks source link

Getting crash when progress increment is lesser than 1 percent #96

Closed kalys closed 9 years ago

kalys commented 9 years ago

Here https://github.com/mrackwitz/MRProgress/blob/master/src/Components/MRCircularProgressView.m#L233

timerInterval is NaN

because

po self.progress - progress
-0.00379740447

I set download task by doing this

[self.progressBar setProgressWithDownloadProgressOfTask:downloadTask animated:YES];

self.progressBar is an instance of MRCircularProgressView.

kalys commented 9 years ago

It started working somehow. Sorry for disturbing.