Organizational Research By

Surprising Reserch Topic

Experts Most Trusted Topic


add edit in exel or edit photo extension


add edit in exel or edit photo extension  using -'ios,ios8-extension,uidocument,uidocumentpickervc'

I checked the latest Dropbox and Excel for iOS. In Dropbox we get an edit button. On click it opens Excel's extension where you can edit the file.

After save, changes are reflected in the Dropbox file too.

I want to add such a button. Also I'd like to add such a button to images to open them in available "photo editing" apps.

How to check if file (image, xls, doc or any other) can be opened to edit?

Code so far:

UIDocumentPickerViewController *documentPicker = [[UIDocumentPickerViewController alloc] initWithURL:url inMode:UIDocumentPickerModeExportToService];
documentPicker.delegate = self;
documentPicker.modalPresentationStyle = UIModalPresentationFormSheet;
[self presentViewController:documentPicker animated:YES completion:nil];


Also tried changing mode to UIDocumentPickerModeMoveToService...



As per apple docs
Move a local document. The user selects an external destination. The document picker moves the document; however, you can still access the document as an external document, letting the user edit the document in place.

But I tried all four modes. Did not show excel option.

   UIDocumentPickerModeImport,
   UIDocumentPickerModeOpen,
   UIDocumentPickerModeExportToService,
   UIDocumentPickerModeMoveToService

    

asked Sep 22, 2015 by atulpariharmca
0 votes
13 views



Related Hot Questions



Walkin Jobs Opening



Government Jobs Opening


...