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
- document dir
- temp folder
nsuserdefaults
thanks in advance
the main difference path: <sandbox>/documents or <sandbox>/tmp.
some more differences:
the
documentsdirectory can accessed via itunes if app has file sharing enabled.the contents of
tmpdirectory 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
Post a Comment