Reputation: 73
In my app i sync my data to iCloud successfully, Even i can see that file iCloud settings. But now i dont know how get that file back from iCloud to my app.
Please help me how get that file back
Upvotes: 0
Views: 207
Reputation: 456
The document already exists where you want it. You just need to do the right thing to access it. Use the URL that you get from your code, but don't include the last part with @"filename."
Pass the url to this method on the file manager:
The NSArray contains NSURL objects which point to the files and folders in that directory. Use the URL of the file that you want and open it as appropriate. For more info, see the NSFileManager documentation.
Upvotes: 1