iphone开发中获取Documents文件夹和资源文件夹路径
2012-08-14 14:09
274 查看
取得有读写权限的Documents文件夹路径方法:
一、 NSString* path = [NSHomeDirectory() stringByAppendingFormat:@"/Documents/"];
二、 NSString* path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
取得只读权限的res文件夹路径:
NSString* path = [[NSBundle mainBundle] resourePath];
一、 NSString* path = [NSHomeDirectory() stringByAppendingFormat:@"/Documents/"];
二、 NSString* path = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
取得只读权限的res文件夹路径:
NSString* path = [[NSBundle mainBundle] resourePath];
相关文章推荐
- iphone开发返回Documents Tmp 应用程序资源文件夹路径
- 获取documents路径 iphone
- android开发如何获取res/raw和assets文件夹的路径
- 从资源管理器中,获取被选择的文件的路径(及文件夹)的API
- NPAPI插件开发详细记录:实用功能——获取插件路径、页面路径、资源路径
- android开发如何获取res/raw和assets文件夹的路径
- iPhone开发:iPhone工程资源管理,资源路径总结
- Servlet开发-线程安全,路径问题,利用类装载器获取资源,大文件搬运,I/O流,servlet的转发
- 开发中获取项目下资源绝对路径方式有
- rcp(插件开发)获取Plugin/Bundle中文件资源的绝对路径
- NPAPI插件开发详细记录:实用功能——获取插件路径、页面路径、资源路径
- 关于ios获取本地Documents路径,没有Documents文件夹
- rcp(插件开发)获取Plugin/Bundle中文件资源的绝对路径
- iPhone开发之沙盒路径的获取
- android开发如何获取res/raw和assets文件夹的路径:
- [置顶] iOS在沙盒Documents中创建文件夹以及获取沙盒路径
- IPhone开发的43个资源
- Android开发中如何获取外置TF卡的路径
- C++获取windows特殊文件夹路径
- Web开发_问题解决(3)之linux服务器上获取路径问题||jsp页面报错问题