Aнгел
Aнгел

Reputation: 1429

How to implement file coordination in UIDocument

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!

Upvotes: 0

Views: 359

Answers (1)

John Goering
John Goering

Reputation: 39060

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

Upvotes: 1

Related Questions