I have created a simple app that saves some info into txt file stored in the local App folder. I would like to enhance my aplication by adding a sync with iCloud.
I saved my "file.txt" to iCloud: [[NSFileManager defaultManager] setUbiquitous:YES itemAtURL:localFileURL destinationURL:ubiquityURL error:&error]
where 'localFileURL'
is the local path url of my file.txt and ubiquityURL
is the iCloud destination URL (The place where the file will be saved).
- But I need to replace the (saved) iCloud "file.txt".
I've already configured my app with iCloud Document service.
Could anyone forgive me an example on how let communicate between my app and iCloud drive in order to save and read a txt file? I've not found simple tutorials on line which provide me a simple solution.
Many thanks in advance