iOS 上可写的目录位置有哪些?
我无法在 Apple iOS SDK 上找到有关哪些目录可写、哪些目录不适合您的应用程序的信息。
我只假设 NSCachesDirectory 和 NSDocumentDirectory 是可写的,但其他的怎么样,比如 NSApplicationSupportDirectory 或 NSTemporaryDirectory 。
在哪里可以找到常见目录的完整列表及其用途以及它们是否可由我的应用程序写入?
我能够找到 NSSearchPathDirectory 枚举的可能值,但它们不包含有关其用途的任何信息,如果您能够写入它们,则更重要。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看《iOS应用程序编程指南》>应用程序运行时环境>文件系统> 一些重要的应用程序目录。
同一页面上有几个有用的链接,这些链接可提供有助于帮助或进一步了解 FS 相关文档的方法。
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.