iphone - Whats the difference between saving content at document directory or temp folder? -


i want save multipel photos in application, application run in background. main difference between saving photos in doc dir or temp path.

and suggest me best way save photos

  1. document dir
  2. temp folder
  3. nsuserdefaults

thanks in advance

the main difference path: <sandbox>/documents or <sandbox>/tmp.

some more differences:

  1. the documents directory can accessed via itunes if app has file sharing enabled.

  2. the contents of tmp directory volatile, os free purge in order save space.

about nsuserdefaults: that's different, it's mechanism stores app-specific configuration data in property lists, can't imagine how and/or why use storing images.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -