I have a UIProgressView that I want to update within a for loop, see the code. However, the progress view won't update itself while in the for loop, it just jumps from 0 to 1! Is this a matter of the progress view not being fast enough? What is the deal here, and how can I make this progress view work?
Thanks in advance for your help!
DownloadProgressView.progress = 0;
for (iDownloadIteration = 0; iDownloadIteration < iIterations; iDownloadIteration++)
DownloadProgressView.progress = (float)iDownloadIteration / (float)iIterations;
//other stuff here..
DownloadProgressView.progress = 1.0;