博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
iOS 两种易混淆的存储路径
阅读量:4652 次
发布时间:2019-06-09

本文共 420 字,大约阅读时间需要 1 分钟。

一,NSBundle

1>我们可以通过解压等操作获取 NSBundle 中的内容.

2>NSBundle主要是包路径,也就是代码编译后的 imge 和 sb 资源文件...

3>例如:[[NSBundle mainBundle]pathForResource:@"history" ofType:@"plist"]

 

二,NSDocumentDirectory

1>也就是 iOS 的存储.可以用 iTunes 备份的数据

2>分为用户偏好设置, NSArray/NSDictionary等的存储,归档设置.

3>NSString *homeStr = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES).firstObject;

转载于:https://www.cnblogs.com/lz465350/p/5102171.html

你可能感兴趣的文章
flex RemoteObject 的两种使用方法
查看>>
Oracle EBS R12多组织(多OU)访问架构
查看>>
小强的HTML5移动开发之路(2)——HTML5的新特性
查看>>
利用Delphi编写IE扩展
查看>>
chrome插件Vimium快捷键
查看>>
Spring Boot 注解
查看>>
自己常看的政评
查看>>
10000以内的N!
查看>>
找到多个与名为“Login”的控制器匹配的类型
查看>>
DrawerLayout的openDrawer()和closeDrawer()方法
查看>>
Drawing with GoogLeNet
查看>>
Rolling in the Deep (Learning)
查看>>
Eigenvectors and eigenvalues
查看>>
【bfs】noip模拟赛 栅栏迷宫
查看>>
4分钟学会网页样式
查看>>
springboot freeMarker
查看>>
Getting started with Processing 第九章总结
查看>>
eclipse同一个工作空间下分开多个项目
查看>>
windows10 64位下安装oracle 11g和PL/SQL Developer
查看>>
【PHP篇】面向对象基础
查看>>