I have an iOS app that stores some data in a sqlite database. The app is shipped with a pre-filled database and that database is copied to userdata folder if it doesn't exist and use that for read-writes.
My question is, is it possible to remove/reset an app in a way that the next time it is installed (or run) it is as if the app got installed for the first time? Should I provide it programmatically? Or is the user able to 开发者_高级运维do it somehow?
Deleting the app and reinstalling it will delete the contents of the bundle. All of your data is stored in the bundle so that will reset the app.
You could also perform the reset in the app by copying your "virgin" files over the top of your live files.
精彩评论