开发者

Iphone persistant preferences after app delete

开发者 https://www.devze.com 2023-03-14 02:06 出处:网络
I want to store a date string in the iphone device, 开发者_运维知识库but not in the application context, because if a user deletes the app then that value is deleted too.

I want to store a date string in the iphone device, 开发者_运维知识库but not in the application context, because if a user deletes the app then that value is deleted too.

Is this possible?


Store it in the keychain. Keychain data is not deleted when the app is.


A possible solution is to store all the information on a server. You could use rails, php, or any other server framework to do this. Also, there's a new service that's trying to make it so you don't have to do any server coding at all: http://www.parse.com


If the application gets deleted on iPhone, all its related files are also deleted. Including files, SQLite databases and preferences.

If you want preference to persist after deletion, you will need a server and allow the user to store that information there (in the cloud).

0

精彩评论

暂无评论...
验证码 换一张
取 消