Calling sleep(5); and updating text field not working
This will probably provide the result that you seek: -(void)textLabelChanger:(id)sender { NSString *myTextLabelString = [NSString stringWithFormat:@”%d”, gameCountDown]; textLabel.text=myTextLabelString; [self performSelector:@selector(updateTextLabelWithString:) withObject:@”sleep 5 worked” afterDelay:5.0]; [self performSelector:@selector(updateTextLabelWithString:) withObject:@”sleep 5 worked second time round” afterDelay:10.0]; } -(void)updateTextLabelWithString:(NSString*)theString { textLabel.text=theString; } There are plenty of ways to do this. Instead of having a single updateTextLabelWithString that you call … Read more