I am loading a file and would like to show the progress in a UIProgressView. I can set the initial with:
[loadingProgressView setProgress: 0.00];
..in viewDidLoad this works perfectly.
The only thing I want to do then is to add 0.1 to the bar each loop but it does not update:
while (eOF != 99999) {
...
[loadingProgressView setProgress:loadingProgressView.progress + 0.10];
}
I have checked around but not really found anything around just updating the bar each time I loop.
Anyone that can share some advice around this?
---UPDATE---
tried this without success:
while (eOF != 99999) {
...
[loadingProgressView setProgress:loadingProgressView.progress + 0.10];
[[NSRunLoop currentRunLoop] runUntilDate:[NSDate date]];
}