您的位置:首页 > 其它

错误:writeToFile没有写入成功

2017-05-23 00:00 375 查看

错误:

[_Array writeToFile:[self Path] atomically:YES];没有写入成功。

原因:

查阅手册发现:
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,改正就OK了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐