Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

gryym

macrumors newbie
Original poster
Jul 14, 2008
13
0
Hi,

I am stumped about how to make texts that's derived from an input like a UITextField, onto a textView and make it such that after each input, the previous sentences are not erased. What I am looking for is instead of updating or refreshing the outputs, they are instead 'pushed' onto the next line.

Currently I am using UITextView as the output for the texts as it is scrollable.

Thanks in advance!
 
Hi,

I am stumped about how to make texts that's derived from an input like a UITextField, onto a textView and make it such that after each input, the previous sentences are not erased. What I am looking for is instead of updating or refreshing the outputs, they are instead 'pushed' onto the next line.

Currently I am using UITextView as the output for the texts as it is scrollable.

Thanks in advance!

Just a guess but try something like:

Code:
myTextView.text = [myTextView.text stringByAppendingString: myTextField.text];

That will put the most recent input at the end of your text view, it you want it to be at the beginning, you'd do:

Code:
myTextView.text = [myTextField.text stringByAppendingString: myTextView.text];
 
Just a guess but try something like:

Code:
myTextView.text = [myTextView.text stringByAppendingString: myTextField.text];

That will put the most recent input at the end of your text view, it you want it to be at the beginning, you'd do:

Code:
myTextView.text = [myTextField.text stringByAppendingString: myTextView.text];


Dude, you really helped me a bunch! That line of code was basically what i needed. Thanks a lot bro. :)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.