I have a while loop and whenever i do
while (b == 0) {
[progressView setProgress: [progressView progress] +0.01]}
The progress never changes. Any help?
I have a while loop and whenever i do
while (b == 0) {
[progressView setProgress: [progressView progress] +0.01]}
The progress never changes. Any help?
Because your while
loop never releases the main thread to actually render the change to the progress view.
You should generally have a thread running in the background doing something and passing callbacks to the main thread with a progress value that is then used to update the UI.