Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
For iCloud file storage see Designing for Documents in iCloud in docs.
Then check
NSFileManagerclass, section Managing ICloud-Based Items.-ubiquityIdentityToken– detect iCloud availability-URLForUbiquityContainerIdentifier:– obtain URL for iCloud directory (container)-setUbiquitous:itemAtURL:destinationURL:error:– move any local file to iCloud (or vice versa); one URL must be local and one must point into one of the iCloud containers-startDownloadingUbiquitousItemAtURL:error:– download the file content-evictUbiquitousItemAtURL:error:– delete iCloud file.Also check
NSMetadataQueryandNSMetadataItemclasses used to discover new iCloud files. iCloud will automatically give you only metadata of the file, but content must be downloaded explicitely (see the methods above)