Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion TTOpenInAppActivity/TTOpenInAppActivity.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,8 @@ - (NSString *)UTIForURL:(NSURL *)url
- (void)openDocumentInteractionControllerWithFileURL:(NSURL *)fileURL
{
// Open "Open in"-menu
self.docController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
// To workaround incompatibility of relative urls with AirDrop feature. We send absolute url to docController
self.docController = [UIDocumentInteractionController interactionControllerWithURL:[fileURL absoluteURL]];
self.docController.delegate = self;
self.docController.UTI = [self UTIForURL:fileURL];
BOOL sucess; // Sucess is true if it was possible to open the controller and there are apps available
Expand Down