icloud-drive

Open iCloud Drive in iOS app

这一生的挚爱 提交于 2019-11-28 09:18:54
I want to allow document(pdf, doc, docx) selection in my app. And I want to integrate iCloud for this. All I want to do is to open the iCloud drive from my app and there user can select the file and returns back to the origin app. Something like whatsapp has done for document selection in iOS app. Any idea regarding this? Read this below link you will get idea: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentPickerProgrammingGuide/AccessingDocuments/AccessingDocuments.html Below is the code : -(IBAction)iCloudDriveFullFolder:(id)sender{

Why my app is not shown in iCloud Drive Folder

﹥>﹥吖頭↗ 提交于 2019-11-28 06:58:40
iCloud Drive Folder doesn't show my app's folder. This is how I send a file to iCloud Drive: - (IBAction)btnStoreTapped:(id)sender { // Let's get the root directory for storing the file on iCloud Drive [self rootDirectoryForICloud:^(NSURL *ubiquityURL) { NSLog(@"1. ubiquityURL = %@", ubiquityURL); if (ubiquityURL) { // We also need the 'local' URL to the file we want to store //NSURL *localURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Photo" ofType:@"pdf"]]; NSURL *localURL = [self localPathForResource:@"document" ofType:@"doc"]; NSLog(@"2. localURL = %@", localURL); //

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

◇◆丶佛笑我妖孽 提交于 2019-11-28 06:36:55
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 is to simply write a text file to the iCloud drive, which later will be "numbers" file I have set up

How to access files in iCloud Drive from within my iOS app?

我只是一个虾纸丫 提交于 2019-11-27 13:41:44
Is there a way to choose file from iCloud Drive similar way to UIImagePickerController() ? Bartłomiej Semańczyk You can present controller the following way: let documentPickerController = UIDocumentPickerViewController(documentTypes: [String(kUTTypePDF), String(kUTTypeImage), String(kUTTypeMovie), String(kUTTypeVideo), String(kUTTypePlainText), String(kUTTypeMP3)], inMode: .Import) documentPickerController.delegate = self presentViewController(documentPickerController, animated: true, completion: nil) In your delegate implement the method: func documentPicker(controller:

My app is getting crashed on UIDocumentPickerViewController

◇◆丶佛笑我妖孽 提交于 2019-11-27 06:43:05
问题 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

Open iCloud Drive in iOS app

北战南征 提交于 2019-11-27 02:50:13
问题 I want to allow document(pdf, doc, docx) selection in my app. And I want to integrate iCloud for this. All I want to do is to open the iCloud drive from my app and there user can select the file and returns back to the origin app. Something like whatsapp has done for document selection in iOS app. Any idea regarding this? 回答1: Read this below link you will get idea: https://developer.apple.com/library/ios/documentation/FileManagement/Conceptual/DocumentPickerProgrammingGuide

Why my app is not shown in iCloud Drive Folder

北慕城南 提交于 2019-11-27 01:38:09
问题 iCloud Drive Folder doesn't show my app's folder. This is how I send a file to iCloud Drive: - (IBAction)btnStoreTapped:(id)sender { // Let's get the root directory for storing the file on iCloud Drive [self rootDirectoryForICloud:^(NSURL *ubiquityURL) { NSLog(@"1. ubiquityURL = %@", ubiquityURL); if (ubiquityURL) { // We also need the 'local' URL to the file we want to store //NSURL *localURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"Photo" ofType:@"pdf"]]; NSURL

How to access files in iCloud Drive from within my iOS app?

跟風遠走 提交于 2019-11-26 16:30:35
问题 Is there a way to choose file from iCloud Drive similar way to UIImagePickerController() ? 回答1: You can present controller the following way: let documentPickerController = UIDocumentPickerViewController(documentTypes: [String(kUTTypePDF), String(kUTTypeImage), String(kUTTypeMovie), String(kUTTypeVideo), String(kUTTypePlainText), String(kUTTypeMP3)], inMode: .Import) documentPickerController.delegate = self presentViewController(documentPickerController, animated: true, completion: nil) In