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

Performance Issue - Multiple Progress Bar #12

Closed mspapant closed 11 years ago

mspapant commented 11 years ago

Hello,

I am using multiple progress bars (in each table cell) to show progress for file uploading. Unfortunately, the view becomes very slow - despite the fact that the progress bars have been finished and the files have been uploaded. I noticed the the iPhone CPU is stacked to > 90%.

The "way" i finish the progress bar is:

YLProgressBar.progress = 1.0 YLProgressBar.YLProgressBar = YES.

Is this the correct way to stop "normally" the progress (times) or i have missed something?

yannickl commented 11 years ago

Hi,

To stop the stripes animation you should set the stripesAnimated to NO. Have you tried to use the instruments to check where the problem comes from exactly?

mspapant commented 11 years ago

Hello,

This exactly was the problem. I didn't set the stripesAnimated to NO.

Thank you for the support!

yannickl commented 11 years ago

You're welcome. ;)