iOS sandbox

Documents: Save the resulting need for persistent application runtime data, iTunes will automatically back up the directory.
Apple recommends to browse to the file in the application data stored in the directory.
Library:

         Caches:
                一般存储的是缓存文件,例如图片视频等,此目录下的文件不会再应用程序退出时删除。
                 在手机备份的时候,iTunes不会备份该目录。
                  例如音频,视频等文件存放其中
         Preferences:
                   保存应用程序的所有偏好设置iOS的Settings(设置),我们不应该直接在这里创建文件,
                   而是需要通过NSUserDefault这个类来访问应用程序的偏好设置。
                  iTunes会自动备份该文件目录下的内容。
                  比如说:是否允许访问图片,是否允许访问地理位置......

tmp: temporary files directory, when the program re-run, and boot time, will empty the tmp folder.


 

Published 49 original articles · won praise 7 · views 30000 +

Guess you like

Origin blog.csdn.net/qq_29680975/article/details/87614797