Hello.
I've got some code that sets the textview.text in a separate function:
And I call it in ViewDidLoad:
And when I press a button it switches to a new view controller:
I use the same performSegue code in the other view controller to go back to the first, but when it goes back the textview refuses to set its text.
Any help?
I've got some code that sets the textview.text in a separate function:
Code:
-(void)settext {
textview.text = @"Hi";
}
And I call it in ViewDidLoad:
Code:
[self settext];
And when I press a button it switches to a new view controller:
Code:
-(IBAction)switch {
[self performSegueWithIdentifier:@"GoNew" sender:NULL];
}
I use the same performSegue code in the other view controller to go back to the first, but when it goes back the textview refuses to set its text.
Any help?