I use the storyboard seque to modal a UIViewController over my tabbarController. The purpose of the view controller that pops up is to take a few user inputs and return an answer to a label on one of the tab bar views (the one that was selected before the view controller popped up).
In my code I added #import "viewBeforePopup.h"
to the poppedUpView.h header file.
Then I create an outlet
IBOutlet viewBeforePopup *view;
The button that triggers the view controller dismal has this code associated with it
NSString *strToSet = textbox.text;
[view.label setText:strToSet];
[self dismissModalViewControllerAnimated:YES];
This use to work for me before storyboard mode. I Should note that the storyboard contains the tab bar controller which is initially loaded and then I added the additional UIViewController.
The view disappears properly and the tab bar view is visible, but the label does not change. I debugged an verified the string that I am trying to assign to the label has a value and it does. It just seems like everything works except for applying the text to the label.
Can anyone please tell me what I am doing wrong with my method or explain the ideal way of doing this since this is probably the wrong way to go about it.
Thank You in advance