I want the screen to display the number on each iteration for the following example code?? This code shows the last iteration number regardless of using a pause...
for(int i = 0; i<10; i++){
[lbl setText:[NSString stringWithFormat:@"%d", i]];
}
I have updates coming across TCP Sockets in a while loop... only the last update gets written to the screen... and it is slow so I should see all the updates.
See Question&Answers more detail:os