[color=#FF0000]UITextView.text=@" ";
上面的方法只能设置一次值呀,之前的就被清空了。
有没有追加文字的方法呢?[/color]
------解决方案--------------------
NSString * tex = UITextView.text;
tex = [ tex stringByAppendingString: @"aaaa" ];
or
tex = [ tex stringByAppendingFormat: @" %d", i ];
UITextView.text = tex;
------解决方案--------------------
UITextView *textView = [[UITextView alloc] init];
NSString *str = textView.text;
textView.text = [str stringByAppendingString:@"sssssss"];