yannickl / YLProgressBar

UIProgressView replacement with an highly and fully customizable animated progress bar in pure Core Graphics
http://yannickloriot.com/library/ios/ylprogressbar/
MIT License
1.28k stars 186 forks source link

Text not updating sometimes #23

Closed agibson73 closed 9 years ago

agibson73 commented 9 years ago

The bar fills correctly but sometimes the text gets stuck on a number. Specifically 10%. If I restart the app it allows the text to update. Clicking on items and removing them the progressbar and text go down normally. I am not using it in a download process more of an achievement tracking bar. Love YLProgressBar

yannickl commented 9 years ago

Thank you for your report. I'll check that quickly. :+1:

agibson73 commented 9 years ago

ok so it has something to do with indicatorTextLabel being set to nil. Sorry I am using this beyond the intended person but it looks beautiful for the purpose that I am trying to accomplish. It works if I take away the check for hasText. I will let you know. I doubt you want to change your code as I am having the progress go up and down

agibson73 commented 9 years ago

Removing the check for hasText has fixed my issue in the update progress.

yannickl commented 9 years ago

Hi,

I found where the bug came from and I just fixed it. I'll update the podspec (for cocoapod) in the next weeks.

agibson73 commented 9 years ago

Really a well done bar! I have customized it a bit but I think it is very well done. Thanks for sharing it with the community.

yannickl commented 9 years ago

:+1: Thank you, I close the issue if you have any prob you can re-open it.