I can't find a clear answer on how to update the progress of a UIProgressbar whilst iterating a loop e.g. :
for (int i=0;i<items.count;i++) {
Object *new = [Object new];
new.xxx = @"";
new...
...
float progress = (i+1) / (float)items.count;
progressBar.progress = progress;
}
[self save];
how can I update the UI on a seperate thread?