So when an app gets deleted they can redownload and the data will still be there. I am trying to store some data forever.
Asked
Active
Viewed 109 times
1
-
Don't abuse the `xcode` tag - this is not in any way related to the IDE. – Dec 14 '12 at 20:01
1 Answers
5
You need to store it in the cloud, and have an account system for the user to log in under, so that you would know what data to send back to that client.
You can use iCloud from apple, or use a web service of your own, or someting like parse.
-
This answer is very good. Assuming you're using your own web service, I would just like to add that credentials stored in the keychain will persist. You can randomly generate a password for that device and associate it with the data in the cloud. Then you can grab the credential information when the app is reinstalled, and download the data. The user doesn't even have to worry about an account. – Jack Humphries Dec 14 '12 at 20:55