Hello, guys.
I have an app that if it is quit in a certain view, I want to restore this view exactly where the user left.
My applicationDidFinishLaunching is very simple at the moment:
- (void)applicationDidFinishLaunching:(UIApplication *)application {
// Override point for customization after app launch
[window addSubview:tabBarController.view];
[window makeKeyAndVisible];
}
What can I do to restore a sequence of 3 view controllers that must be stacked in the tab bar controller?
Normally, the user do these interactions with the app to go in the view that I want to restore:
- App pops out;
- The first tab is a table view (so its the first view controller that I have to restore) and user selects a row;
- The view that appears is another table view (so its the second view controller that I have to restore) and user taps a + in the top bar of this view;
- The last view controller appears in a modal way (so its the third view controller that I have to restore).
I tried what the answer of this post suggests, but my tab bar controller turns out in a mess (the post don't use a tab bar controller and I'm a beginner in iPhone development, so my tries wasn't very successful).
Thanks in advance.