icloud-drive

Swift write/save/move a document file to iCloud drive

纵饮孤独 提交于 2019-12-17 17:58:13
问题 I've been trying for over two days to write a file to iCloud drive. I have tried writing a simple text file directly, locally then moving it, using UIDocumentMenuViewController, etc. I'm not getting any errors with my code and stepping through debugger, it looks successful, but when I check to see if the file exists or at least the iCloud directory, there is nothing there. I tried on both the simulator and my iPhone, triggering iCloud synching, and everything else I can think of. My main goal

How to show particular file format from iclouds derive in ios swift

萝らか妹 提交于 2019-12-13 03:47:13
问题 In my application upload the file from iclouds derive. want to upload xlsx, docx, txt. want to upload the xlsx file means from iclouds derive want to display only xlsx another files should not display.[docx,txt] same if the user want to display docx file means xlsx and txt ,xlsx file should not be display. Here my code @IBAction func moveiclouds_BtnClick(_ sender: Any) { let documentPicker = UIDocumentPickerViewController(documentTypes: [kUTTypePDF as String, "com.microsoft.word.doc", "com

Export & Import Documents using iCloud in IOS

China☆狼群 提交于 2019-12-12 19:19:03
问题 I am developing an app that makes user to export core data records into an document using iCloud Drive/iCloud Documents/iCloud Kit and he can able to import and access those document at another device. I mean Export/Import of documents within devices that are using same application. Documents can be identified by unique document name for importing.. Please Give any suggestions for above task. Which one is more useful..or suggest any other useful links for above task. 1) iCloud Documents.

iCloud Drive list directories and files through NSMetadataQuery

回眸只為那壹抹淺笑 提交于 2019-12-10 18:27:57
问题 I have built an iCloud-enabled app named "rmc".My app now can upload files to iCloud Drive and get metadata by NSMetadataQuery.But NSMetadataQuery's results only include the files in my APP's Container.Please see this link:https://developer.apple.com/videos/wwdc/2015/?id=234, this is a document and it is said that NSMetadataQuery can get files in other APP's container.What I want is that I can get all files in iCloud Drive,just like the app "Document 5" and "Cloud Lite",they can get all files

Accessing iCloud Drive files from app

岁酱吖の 提交于 2019-12-10 15:56:35
问题 I want to have iCloud support in my app where I can store and get PDF files. My question is "How to access iCloud drive file without using UIDocumentPickerViewController ". Actually I want to have custom files list in my app. I tried this code - (void) getAllFilesIniCloud { queryData = [[NSMetadataQuery alloc] init]; [queryData setSearchScopes:[NSArray arrayWithObject:NSMetadataQueryAccessibleUbiquitousExternalDocumentsScope]]; NSPredicate *pred = [NSPredicate predicateWithFormat: @"%K like '

Do I have to download all iCloud files to be able to generate their thumbnails?

柔情痞子 提交于 2019-12-09 04:25:45
问题 I have read all answers on stack overflow about this error and none solved the case, because my question is a little different. I am enumerating iCloud drive elements NSMetadataItem and storing them on an array. The files are there: confirmed by looking at the iCloud folder on OS X and also on the device using UIDocumentPicker . Later on the code I try to retrieve the thumbnails of such elements using: // self.item is a NSMetadataItem NSURL *fileURL = [self.item valueForAttribute

Which restriction an app with CloudKit has if user does not turn on iCloud Drive

元气小坏坏 提交于 2019-12-07 05:40:58
问题 Which CloudKit services are not available if user not turns on iCloud Drive? Is it any way to turn on iCloud Drive from app? I guess downloading records from public container should work regardless iCloud Drive, writing container only if it is enabled?! 回答1: CloudKit is linked to the iCloud account. If the user is login in into iCloud, but does not have iCloudDrive enabled, then there are no limitations to CloudKit. If the user is not logged in into iCloud, then he can only access public data

iCloud versus iCloud Drive versus CloudKit

人盡茶涼 提交于 2019-12-06 15:39:15
Would I be correct in assuming that a user of my iOS app that uses CloudKit would not need to pay a monthly fee to Apple to use my CloudKit app? Apple just changed from annual to monthly for anything above 5GB for iCloud... or is it unrelated? I've been hunting around Apples development site and I cannot seem to find a reference for who gets charged a fee for use of CloudKit. WWDC made brief reference that there is a limit that can be reached and it seemed like they were indicating that the developer would have to pay Apple if their user base exceeded a certain point. If that's the case, a

My app is getting crashed on UIDocumentPickerViewController

落爺英雄遲暮 提交于 2019-11-28 12:05:13
I am working on file sharing on my iOS App, I am new to UIDocumentPickerViewController . I do not know why my app is crashing. UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithDocumentTypes:@[@"public.image"] inMode:UIDocumentPickerModeImport]; documentPicker.delegate = self; documentPicker.modalPresentationStyle = UIModalPresentationFormSheet; [self presentViewController:documentPicker animated:YES completion:nil]; App is crashing on the highlighted lines. Has anyone done this previously? I want to do the same like the attachment below See