I’m really struggling to understand this one and would appreciate any and all comments.
During the development of my app I was looking through this forum and the general consensus was that the files in your project directory are read only and that if you want to change or write to a file then you need to copy it to “system.DocumentsDirectory”.
My app was rejected last night because of this.
Apple says :
“The iOS Data Storage Guidelines indicate that only content that the user creates using your app, e.g., documents, new files, edits, etc., may be stored in the /Documents directory - and backed up by iCloud.”
I say :
The file I put there is a database filled with words. It’s not as simple as this though. During game play I edit this database with stats related to each and every word. In the same database I also store the current game in progress data and the high score table too.
So…
I have a database, 50% pre-created and 50% updated during game play.
I therefor need this database to be read-write.
The documents directory is the correct read/write location!?
But Apple says I may not copy my file there???.. I may only store new files and edit files etc that are there because of my app!?
As for the iCloud back up point, YES, I do want iCloud to backup the database for the user as it can hold years worth of stats relating to the game and the stats of all the words in the database.
Let’s say that this database did NOT contain the words. Let’s say I find a way to store the words in my app folder and the high score table and game stats in the documents directory… I would still on launch of the app check if the high score / game stats file exists in the documents directory yet and if not, copy it there. After all, a high score table doesn’t start blank.
The only difference between this scenario and my current one is the size of the file. The high score table would be a few K but the word database is around 13 MB.
I really don’t get this one. [import]uid: 126708 topic_id: 25811 reply_id: 325811[/import]
[import]uid: 52491 topic_id: 25811 reply_id: 104384[/import]