打開我的設備上的其他應用程序要打開另一個應用程序(如GDrive的,的iBooks,等等)。使用我的應用程序中的UTI。我如何從我的應用程序
爲此,我使用下面的代碼從this site,其被用於從我的應用程序到另一個應用程序導出PDF文件嘗試。
NSString * filePath = [[NSBundle mainBundle] pathForResource:nil ofType:@"pdf"];
documentController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:filePath]];
documentController.delegate = self;
[documentController retain];
documentController.UTI = @"com.adobe.pdf";
[documentController presentOpenInMenuFromRect:CGRectZero inView:Parent animated:YES];
上面的代碼確實給我的應用程序(GDrive的,iBook筆記本等),我的設備上提供我的應用程序列表中,但是當我點擊這些應用程序中的任何一個,其出口從一個PDF我應用到選定的應用程序,但我已經使用的文件路徑爲「無」。
我想要做的是能夠從我的應用程序中打開我的設備上的任何其他應用程序(GDrive,iBooks等),而無需從我的應用程序向該其他應用程序發送任何PDF文件。