is there a way to restore an app to the original settings when a user exits?
I need the app the reset every time it's closed out.
thanks so much.
is there a way to restore an app to the original settings when a user exits?
I need the app the reset every time it's closed out.
thanks so much.
You can use this method application:didFinishLaunchingWithOptions:
If you don't want to keep data after the application end just don't save it. Nothing is saved automatically for you.
Don't use NSUserDefaults, CoreData and don't store things on the filesystem.
Add the UIApplicationExitsOnSuspend key to your app's info.plist. This will cause your app to terminate when the user hits the button. Then don't load anything saved from NSDefaults (etc.) when your app restarts.