Reputation: 305
I am pretty new to iOS and was wondering if there was a way to restart an app. Essentially when you reach the end of the app it gives you the option of restarting the whole app. The instances are reset along with everything else. I could go back to the first screen and reset instances manually, but I was wondering if there was a way I could have the app restart or reboot itself.
Upvotes: 0
Views: 152
Reputation: 26325
Are you familiar with the Model-View-Controller design pattern? You should have your application data stored in a model object. When the user "gets to the end", you can reset the model and update your views to start over.
Upvotes: 2