我做iOS应用使用SQLite数据库...在iPhone上存储数据的最佳方式是什么?
为了这个,我读了苹果的方针,发现“用户可以存储在/ Documents目录的文件”
在我的应用程序,我使用单一模式登录。为此,我将所有用户数据(基本上都是Sqlite数据库)存储到Documents目录。数据库也存在于包含从网站下载的详细信息的同一目录中。
My question is,
1. Should I have to change the storing file location instead of to the Documents directory?
2. Where should my database file be placed?
3. don't want to delete database file after user deleting Apps.(if user installed again i want to show that same db)
如果我把它放在Documents目录中,一旦用户从设备上删除应用程序,它将删除所有文件。
请在这个问题上指导我。 在此先感谢。
在我看来,应用程序的**缓存目录**是存储动态内容的最佳位置。 – TheTiger