iOS 上可写的目录位置有哪些? [英] What are the directory locations that are writable on iOS?

查看:59
本文介绍了iOS 上可写的目录位置有哪些?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在 Apple iOS SDK 上找到有关哪些目录可写以及哪些目录不适用于您的应用程序的信息.

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

我只假设 NSCachesDirectoryNSDocumentDirectory 是可写的,但其他的呢,比如 NSApplicationSupportDirectoryNSTemporaryDirectory.

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?

我能够找到 NSSearchPathDirectory 枚举的可能值,但它们不包含任何有关其用途的信息,如果您能够写信给它们,则更重要.

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.

推荐答案

查看《iOS 应用程序编程指南》 > 应用程序运行时环境 > 文件系统 > 一些重要的应用程序目录.

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

同一页面上有几个有用的链接,指向有助于或进一步了解 FS 相关文档的方法.

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

这篇关于iOS 上可写的目录位置有哪些?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆