如何将NSMutableDictionary写入Plist [英] how to write NSMutableDictionary into Plist

查看:98
本文介绍了如何将NSMutableDictionary写入Plist的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以帮我解决如何将NSMutableDictionary写入plist ....

can any one help me with this how to write a NSMutableDictionary into a plist....

提前感谢..

推荐答案

确保您要写入的pList文件位于合法的位置以进行编辑,例如应用程序沙箱中的文档。
然后找到该位置的路径(如果有现有的pList文件,它将覆盖),并使用:

Make sure the pList file you are writing to is located in a legal place to edit it, for example Documents in the apps sandbox. Then find the path to that location (if there is an existing pList file, it will overwrite), and use:

[myDictionary writeToFile:path atomically:YES];

写下你在这个过程中的距离,也许还有一些代码/错误消息...

Write how far you are in the process, and maybe some code / error-message...

这篇关于如何将NSMutableDictionary写入Plist的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆