Please help me with the concept I'm new to iOS.
I'm developing an app witch have 2 main stories / views.
When app starts it checks NSUserDefaults, and if is: NSInteger witchView = [prefs integerForKey:@"setView"]; set to 1 I start app using view1.
Then from a view1 I can go to settings and there have an switch button for set witch view will load on stat. This works perfect ... if I set to be view2 to start on startup it works.
View2 also have the settings button and can go to identically settingsView.
What I'm trying to do is when go back from the settings automatically start the different view if that was set in option's view.
Now I have to restart app if I want that.
I have the AppDelegate class witch starts View1 or View2. From View1 and View2 I can go to SettingsView.
Do I have to connect SettingsView with the AppDelegate? And every time when I press settings button always dismiss view1 or view2 and from the AppDelegate start SettingsView and on return again start the appropriate one?
What is the best way to do this?
Thanks, Matej