문제

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?

도움이 되었습니까?

해결책

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top