Open file in another application

My application needs to open some types of files in other applications, for example, the Dropbox application, it can display installed applications that can open certain types of files.

How to get a list of applications?

+13
source share
3 answers

You can use QLPreviewController from white papers.

+5
source

jtbandes, , , :

NSURL *url = [NSURL fileURLWithPath:filePath];
UIDocumentInteractionController *popup = [UIDocumentInteractionController interactionControllerWithURL:url];
[popup setDelegate:self];
[popup presentPreviewAnimated:YES];

H:

@interface MyViewController : UIViewController <UIDocumentInteractionControllerDelegate>

: , , "", , . Share, UIActivityViewController, , .

+1

All Articles