将NSBundle Plist文件加载到文档目录

时间:2015-01-20 16:36:34

标签: ios iphone

我使用Plist文件读取和写入数据,要在设备中工作,我已经将编程文件从NSBundle以编程方式移动到文档目录。并使用该plist来写入数据。这个过程是正确的方式,请问Appstore接受这种方法。请帮帮我。

谢谢,

1 个答案:

答案 0 :(得分:0)

没有。 plist不是用户数据,不应该备份,但文档文件夹是

将其移至库/ Caches /(并准备丢失它)

OR

在库中创建自定义目录..(例如,应用支持)

src:https://developer.apple.com/icloud/documentation/data-storage/index.html src2:https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/FileSystemProgrammingGuide/ManagingFIlesandDirectories/ManagingFIlesandDirectories.html

相关问题