I
I
ihabrman2011-11-07 15:08:28
iOS
ihabrman, 2011-11-07 15:08:28

What is the best way to store data in the iPhone app?

The application is a banal reference.
As far as I understand, the method of copying the sqlite database from the folder with the application itself to the Documents folder is most often used. But in light of the latest news , the question is.
I tried to connect to the database directly from the application, but errors are pouring in and nothing comes out. That is, even for banal select's, the database cannot be used in this way. Or is it possible? How do you do it all?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Infernal, 2011-11-07
@Infernal

If the base is filled in by the user, then put in Documents. Automatic backups will be created in iTunes and iCloud, the user will never lose data.
If this is just a cache of server data to speed up work, then in Caches. Backups will not be made, the data will be automatically deleted when there is not enough free space on the device.
If the base is a cache for offline use, create a base in Caches or Documents and set the file attribute as indicated here: adcdownload.apple.com//ios/ios_5.0.1_beta/iclouddonotbackupattribute.pdf
There will be no backups, but the base is yours will not be deleted even if the memory runs out.

I
iStyx, 2011-11-07
@iStyx

I recommend copying to Library / Cache, if it is not there, copy again. Do you have an immutable base?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question