I'm using a navigation based view controller in my app. Users can click on a button in the navigation to open a new view where they can select from a few different options. What I'd like to happen is when the user returns to the original view, the app saves the option chosen in the second view in an object in the original view.
I've tried a few things but none of them work.
I've tried creating an object in the original view controller, turning it into a property:
@property (nonatomic, retain) NSString *testing;
then in the second view controller, updating it with something like this when the user selects an option:
if (!oVC)
oVC = [[OriginalViewController alloc] init];
oVC.testing = object;
I can't get it to work. Could someone point me in the right direction? It would be greatly appreciated.