iOS:plist读写操作
来源:互联网 发布:安卓看本子的软件 编辑:程序博客网 时间:2024/06/09 00:25
1,如果是手工在项目中创建的plist文件,只适合读取,并无法写入,因此此处的读写操作也暗指是在沙盒中的plist文件操作
2,写:
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *path = [paths objectAtIndex:0]; NSString *fileName = [path stringByAppendingPathComponent:@"Data.plist"];3,读:(简单的使用初始化时使用文件初始化的方法)
NSMutableDictionary *d = [[NSMutableDictionary alloc]initWithContentsOfFile:fileName];
0 0
- iOS:plist读写操作
- ios-plist文件读写操作
- ios-plist文件读写操作
- iOS plist 文件读写操作
- iOS中plist的读写操作
- iOS plist文件的读写删操作
- plist的读写操作
- plist文件读写操作
- IOS 读写plist文件
- ios plist文件读写
- 【初学】iOS学习笔记-本地化之Plist文件读写操作
- iOS 中plist中的对象的读写操作
- ios plist 文件读写/plist 标签
- .plist文件的读写操作
- Plist文件的读写操作
- plist 文件的读写操作
- ISO之plist读写操作
- Plist文件的读写操作
- 动态规划---hdu1231---最大连续子序列
- yuv图像格式
- Java堆内存的10个要点
- android webservice获取城市天气情况
- SHELL下date命令的用法
- iOS:plist读写操作
- 深入理解PHP内存管理之谁动了我的内存
- SQLServer2008R2
- Undefined symbols for architecture arm64:
- 比较全面的CSS BUG浏览器兼容知识汇总
- asp.net后台cs文件对文本框进行数字校验
- Android 5.0:ART 取代 Dalvik ?
- asp.net网站管理工具 工具已超时问题如何解决!求高手指点!
- 【Adobe】请卸载并重新安装该产品