When in airplane mode or in any other state where network access is unavailable, there will be a call to NSFileManager URLForUbiquityContainerIdentifier: return nil?
The next question is: if this call to URLForUbiquityContainerIdentifier: does not return zero, but rather returns a valid URL when network access is unavailable, is this a way to access cloud-based documents offline?
Apple docs says it will return nil if iCloud is not configured or enabled. He does not mention what happens if network access is not available.
I would experience it myself, but from the fact that, as I understand it, I would have to test it on a real device, and testing on the device is currently impossible for me. Thanks!
source share