I would like to open a settings window only once, first time i open my app.
After that, this settings window will doesn’t display anymore and it will display the main view of the app.
I don’t know how can i solve this problem, because the Storyboard only has one initial ViewController, and i would need two (a ViewController with settings, and other ViewController with my main view).
How can i choose between my both ViewController?
Thanks.
I think the best way to do this is to use user defaults — register a default, say something like setBool:TRUE forKey:@”NeverOpened”, and then check that value. If it is true, have your main view controller modally present the settings controller, and then when that is dismissed, set the value of the “NeverOpened” key to false. Next time the app is opened, NeverOpened will be false, and the settings controller won’t be presented.