Is setUbiquitous the only way to move a file to iCloud?
-
25-10-2019 - |
Question
The documentation says that NSFileManager
's setUbiquitous
method is the way to move a file to the cloud. However, I am using NSFileManager
's copyItemAtURL
with an NSFileCoordinator
to copy a file from the application sandbox to the ubiquity container. It is working fine.
Is there a problem with this approach?
Solution
setUbiquitous is a method, that does moveItemAtURL:toURL:
with NSFileCoordinator
, so there is no problems to work with MobileDocuments in a general way using NSFileManager
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow