In my iphone application I have two scenes, both of them are view controllers.
Normally initial scene is set to the first one. When user plays it passes to the second one.
At this point when the user closes the app and restarts it, if the user has already played, it should start with the second scene, so the initial scene should change for that user.
How can I do this?
And i dont use a navigation controller.
If you are using xibs, you set this up in the app delegates
applicationDidFinishLaunchingWithOptions.Create a global BOOL and check it’s value on applications launch, E.g:
.h
.m
For storyboards:
In the first view controllers
viewDidLoad.If you are using storyboards and have decided to use my xib solution, delete the storyboard from the project, and remove it here as well: