如果想实现从上到下,逐渐显示UITextView中内容。
需要在循环中添加以下语句:
[[NSRunLoop currentRunLoop] runUntilDate: [NSDate distantPast]];
否则,在循环中添加的[myTextView setText:@"123"];在循环结束之后才能显示出来。
如果想实现从上到下,逐渐显示UITextView中内容。
需要在循环中添加以下语句:
[[NSRunLoop currentRunLoop] runUntilDate: [NSDate distantPast]];
否则,在循环中添加的[myTextView setText:@"123"];在循环结束之后才能显示出来。