iCloud's loadFromContents - how to deal with UIDocumentStateSavingError & UIDocumentStateEditingDisabled

白昼怎懂夜的黑 提交于 2019-12-04 07:43:46

Do you have conflict management implemented ?

In those scenarios you should attempt a number of things then retry loading the file the first being to check if

[NSFileVersion unresolvedConflictVersionsOfItemAtURL:]

has any conflicts, resolve them, retry opening the file,

[NSFileManager evictUbiquitousItemAtURL:]

and

[NSFileManager startDownloadingUbiquitousItemAtURL:]

if still can not open it, retry again after it downloaded.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!