Seb OH
Seb OH

Reputation: 835

Adding text to an already populated UITextView

Really quick, easy question.How do I add text to a UITextView, when it's already populated.

E.G., but doesn't work: _textView.text=+@"";

Thanks, SebOH

Upvotes: 0

Views: 65

Answers (3)

MAB
MAB

Reputation: 963

_textView.text = [_textView.text stringByAppendingString:@""]

Upvotes: 1

Sri Tirupathi Raju
Sri Tirupathi Raju

Reputation: 819

 _textView.text = [NSString stringWithFormat:@"%@%@",_textView.text,@"text you want to append"];

using above you can add the text where ever you want prefix,postfix ..

Upvotes: 1

Ken Toh
Ken Toh

Reputation: 3751

_textView.text = [_textView.text stringByAppendingString:@"Additional Text"];

Upvotes: 1

Related Questions