Wrong ^ Read the post before downvoting or making an edit like this.
I am making a game in which the user can restart their progress from the beginning. This should clear all primitive variables and NSUserDefaults.
Is there a fast and efficient way to do this, other than just calling points = 0
, etc.. for every variable I have? The NSUserDefaults is easy enough to clear, but I'm not sure how I should clear everything else. Especially with updating labels and everything, I'd have to set up a few delegates and it's something messy that would be a pain to do.
Is there a way to just restart the app back to how it was when initially downloaded? Kind of like the Reset all content and settings option on iOS Simulator, but programatically