您的位置:首页 > 移动开发 > IOS开发

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

2016-05-19 19:48 316 查看
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.


分析:

也就说要存的不能为你自定义的对象,也不能是null

服务器返回数据中含有数个null

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

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

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  ios-error