0

I've found this link to use Document Types in the info.plist

How do I get my app to show up in the "Open In..." popover list in the iPad?

but what if I want to add any kind of file to the Document types, shoud I add "jpg,png,pdf,mov,xml,php,doc,ppt....." to the info.plist.

Is there a easy way to make myapp open any kind of file in another app?

Community
  • 1
  • 1

1 Answers1

0

usually we will write Open in actionsheet and on clicking that we will call the documentationinteraction controller to find the applicable apps which can open the document

UIDocumentInteractionController *docInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:@"file_full_path.pdf"]];

[docInteractionController presentOptionsMenuFromRect:self.view.frame
                                                   inView:self.view
                                                 animated:YES];

fileURLWithPath:- contains the file name of full path

  • Thanks for your answer, but you do not understand my question. I want myapp show in another app's "open in" list, not let other app show in myapp's "open in" list. – SunKaixuan Apr 26 '13 at 05:02