views:

83

answers:

3

I have an app that lets user record their own audio. By now I'm saving those files into Documents directory. My question is: if I will release a new version of that app, will user recorded files get deleted?

Is there a better place to store user generated audio files?

Should I use NSUserDefaults for data that stay even after app upgrade?

thx

+1  A: 

Both the Documents directory and NSUserDefaults survive application updates. Choosing which to use depends on the kind of your data.

Costique
thank you very much for the answer, can you point me to some documentation? just to have deeper knowledge. Thanks.
sosergio
A: 

if I will release a new version of that app, will user recorded files get deleted?

No.

Is there a better place to store user generated audio files?

No.

Should I use NSUserDefaults for data that stay even after app upgrade?

Only if your data is small.

KennyTM
+1  A: 

NSUserDefaults is used for storing settings (objects of Key-Value Coding compliant classes) Other data such files you should store in Documents folder, wich survive between updates (if you don't delete it yourself, of course :)

xzDeveloper