代码之家  ›  专栏  ›  技术社区  ›  Aнгел

如何在UIDocument中实现文件协调

  •  0
  • Aнгел  · 技术社区  · 11 年前

    我已经实现了UIDocument功能( contentsForType:error: , SaveToURL:forSaveOperation:completionHandler: , loadFromContents:ofType:error: )在iCloud中存储简单的文本文件。

    如何实现文件协调?优点是什么?我是否需要对以前的代码执行读/写操作更改?

    谢谢

    1 回复  |  直到 11 年前
        1
  •  1
  •   Epaga Alex Reynolds    10 年前

    UIDocument已经“免费”提供了文件协调。有关使用UIDocument的更多优点,请参阅此处的UIDocument文档: https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocument_Class/index.html

    推荐文章