iCloudDocumentSync icon indicating copy to clipboard operation
iCloudDocumentSync copied to clipboard

Suggestion: Update documentation on use of retrieveCloudDocumentWithName

Open Seoras opened this issue 9 years ago • 1 comments

The documentation section covering retrieveCloudDocumentWithName should be updated with a warning that it is the completion block's responsibility to close the document once opened otherwise deleting it at a later point in time will result in the file auto-magically re-appearing.

I was ready for jumping off a bridge after more than a day wasted on trying to work out why I couldn't delete anything before I stuck the line below in the completion handler right after I'd accessed the file data.

[cloudDocument closeWithCompletionHandler:nil]; 

Seoras avatar Sep 13 '15 01:09 Seoras

Thanks for sharing this important information!

neowinston avatar Jul 22 '19 12:07 neowinston