我已经实现了 UIDocument 功能(contentsForType:error:
, SaveToURL:forSaveOperation:completionHandler:
, loadFromContents:ofType:error:
)来在 iCloud 中存储简单的文本文件。
如何实现文件协调?有什么好处?我是否需要对以前的代码进行读取/写入操作的更改?
谢谢!
最佳答案
UIDocument 已经“免费”提供文件协调。有关使用 UIDocument 的更多优势,请参阅此处的 UIDocument 文档:https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocument_Class/index.html
关于ios - UIDocument中如何实现文件协调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25588373/