06 - writeToFile写入不成功/无法写入的原因

来源:互联网 发布:综合基础知考什么 编辑:程序博客网 时间:2024/04/29 17:51

error: writeToFile写入不成功/无法写入的原因

[cacheDic writeToFile:cacheURL atomically:YES];

后却返回no,查阅手册发现:

If an array or dictionary contains objects that are not property-list objects, then you cannot save and restore the hierarchy of data using the various property-list methods and functions.

分析:

  1. 也就说要存的不能为你自定义的对象,也不能是null
  2. 服务器返回数据中含有数个null

fix - BUG: OC暂时无法解决,在线解析数据

简书地址:http://www.jianshu.com/users/227bbeb09f91/latest_articles

0 0