2nd Tab when input new values doesnt refresh. The application has to be restarted in the simulator for the new values to take effect.
How the app is setup:
In Tab 1, there are text fields take in values. I have a Submit button which passes the values to AppDelegate which is then reused in Tab 2.
First Run : Input the values on Tab 1 and press Tab 2 – All labels are refreshed properly with correct calculated values.
Second Run : Input a different set of values on Tab 1 and press Tab 2. The values on labels still retain the calculated values from Run 1.
Then I restart the app on simulator and input the values on Tab 1 and I get the results as expected. But when I start a new execution the values are retained from the first run.
I am a newbie with 1 week into iPhone development. So please help!
It sounds like you are updating your labels on viewDidLoad of “tab 2”, when you probably want to do that in viewWillAppear: instead.
Hard to say for sure without seeing some code.