Hi, I'm trying to reload a value I set on UIViewController to update each time I transition with this code (coming and going are both UIViewControllers):
coming.phoneNumber = aPhoneNumber;
[coming viewWillAppear:YES];
[going viewWillDisappear:YES];
[going.view removeFromSuperview];
[self.window insertSubview: coming.view atIndex:0];
[going viewDidDisappear:YES];
[coming viewDidAppear:YES];
when the phone number value changes in the coming view it never shows up when the view is inserted into the subview. How do I make view show the updated phone number?