Good night, I try to print text to the label character by character, I do it in a separate thread, but why does the text appear in the label all at once, rather than character by character, please tell me how to do it right or what to fix? I create a stream like this:
[NSThread detachNewThreadSelector:@selector (TestMethod) toTarget:self withObject:nil]; -(void) TestMethod { NSString *s = textplace.text; int i = textplace.text.length; label1.text = @""; for(int j =0;j < i;j++) { NSRange range = NSMakeRange(j, 1); label1.text = [label1.text stringByAppendingString:[s substringWithRange:range]]; [NSThread sleepForTimeInterval:1]; } [NSThread exit];
}