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

Wellington2k

macrumors regular
Original poster
Jun 4, 2011
131
0
Hello.

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?
 
Thanks for your help, it works now!

That's some nice info!
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.