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

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Gilgamesho/article/details/51456497

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

猜你喜欢

转载自blog.csdn.net/Gilgamesho/article/details/51456497
06
今日推荐