What are the directory locations that are writable on iOS?

可紊 提交于 2019-12-13 14:15:53

问题


I was not able to find on Apple iOS SDK information regarding which directories are writable and which are not for your application.

I only assume that NSCachesDirectory and NSDocumentDirectory are writable but how about others, like NSApplicationSupportDirectory or NSTemporaryDirectory.

Where can I find a complete list of common directories with their purpose and if they are writable or not by my application?

I was able to locate possible values for NSSearchPathDirectory enum but they do not contain any information regarding their purpose and more important if you are able to write to them.


回答1:


Have a look in the "iOS Application Programming Guide" > The Application Runtime Environment > The File System > A Few Important Application Directories.

There are several useful links on the same page to methods that will help or to further FS related documentation.



来源:https://stackoverflow.com/questions/5328398/what-are-the-directory-locations-that-are-writable-on-ios

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!