0

On View1, I have an empty textView that will populate with data from a textField. The textField is on View2. Every time I swipe right to view the data in View1, it never lists in the textView. It overwrites whatever is currently there.

Here's my code: https://github.com/dward1289/Objective-CII/tree/master/week4Proj

The assignment is already done, but even after it was graded I never found out what I was doing wrong. Please take a look, and tell me what I can change so that the textField data will populate in the textView and not overwrite the current text.

4

1 に答える 1

0

新しい入力を古い情報に追加したいと思います。もしそうなら、

-(void)DidClose:(NSString*)nameString
{
    txtView.text = [txtView.text stringByAppendingString:nameString];
}
于 2013-03-04T15:44:39.183 に答える