How to implement file coordination in UIDocument

360 Views Asked by At

I already implemented UIDocument functionality (contentsForType:error:, SaveToURL:forSaveOperation:completionHandler:, loadFromContents:ofType:error:) to store simple text files in iCloud.

How do I implement file coordination? What are the advantages? Do I need to perform changes on previous code for reading/writing operations?

Thanks!

1

There are 1 best solutions below

1
On BEST ANSWER

UIDocument already provides file coordination "for free". See the UIDocument documentation here for further advantages of using UIDocument: https://developer.apple.com/library/prerelease/ios/documentation/UIKit/Reference/UIDocument_Class/index.html