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

Loading NSBundle Plist file to Document Directory

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

谢谢,

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

将其移至 library/Caches/(并做好丢失的准备)

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

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