i have a loop that looks like this
for(int x=0; x < 10; x++){
[testLabel setText:[self randomString]];
sleep(1);
}
The randomStr
It's better if you run your string on a background thread
[self performSelectorInBackground:@selector(updateBusyLabel:) withObject:[NSString stringWithFormat:@"Processing ... %i",iteration]];
-(void)updateBusyLabel:(NSString *)busyText {
[_busyLabel setText:busyText];
}
I wouldn't use sleep(), and the timer is too much work.