寻找沙箱的Documents文件夹路径
来源:互联网 发布:sql server设置默认值 编辑:程序博客网 时间:2024/06/04 17:51
// 寻找沙箱的Documents文件夹路径
方法一:
- (NSString *) dataFilePath {
NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);
NSString *documentsDirectory = [paths objectAtIndex:0];
return [documentsDirectorystringByAppendingPathComponent:@"test.txt"];
}
NSString * path = [self dataFilePath];
方法二:
- (NSString *) dataFilePath {
NSString *homePath =NSHomeDirectory();
stringByAppendingPathComponent
return [homePath StringByAppendingPathComponent:@"Library/test.txt"];
}
0 0
- 寻找沙箱的Documents文件夹路径
- 关于ios获取本地Documents路径,没有Documents文件夹
- 文件夹路径my documents 含有无效字符
- iphone开发中获取Documents文件夹和资源文件夹路径
- 主题:文件夹路径 My Documents中包含无效字符的错误
- “错误1324,文件夹路径“my documents”中含有无效的字符”
- iOS在沙盒Documents中创建文件夹以及获取沙盒路径
- 为用户的配置文件路径(原来在“Documents and Settings”文件夹的子目录)指定一个不同的文件夹
- iphone开发返回Documents Tmp 应用程序资源文件夹路径
- 打开Windows7的“Documents and Settings"文件夹
- Documents文件夹和Resources文件夹有什么样的区别?
- OC中获取沙盒中的Documents目录路径常用的代码方式
- 转移 windows xp 的Documents and Settings系统文件夹
- Windows XP 系统中 My Documents 文件夹消失的解决之道
- iTunes中对Documents文件夹进行操作的监听方法
- win8如何移动用户的 Documents and Settings 文件夹
- 获取documents路径 iphone
- 关于获取documents路径
- Myeclipse 关闭点击文件后 左侧的目录自动展开到文件所在位置的功能
- nodejs 调试
- fuelphp 学习第二天
- macos:获取c调用错误原因的描述,,,获取当前的工作目录的方法
- 【Matlab编程】Matlab高效编程技巧
- 寻找沙箱的Documents文件夹路径
- 创建表空间和用户并授权,更改用户
- leetcode:Longest Substring Without Repeating Characters
- NS2
- 尼玛梅西,贝利老马之争
- NS2机制
- python再学习4 启动cmd批处理文件
- MySql查询结果按照指定顺序排序
- adr,adrl和ldr指令的用法比较