From fefb4d2248d4d4ef65106ef4ed48f904fa2066d9 Mon Sep 17 00:00:00 2001 From: Paul Gardiner Date: Tue, 14 Apr 2015 15:19:58 +0100 Subject: Fix crash in iOS app when share button is used popover presentations need to be told which button to emerge from --- platform/ios/Classes/MuDocumentController.m | 1 + 1 file changed, 1 insertion(+) (limited to 'platform/ios/Classes') diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m index 287b612f..b30d516c 100644 --- a/platform/ios/Classes/MuDocumentController.m +++ b/platform/ios/Classes/MuDocumentController.m @@ -576,6 +576,7 @@ static void saveDoc(char *current_path, fz_document *doc) { NSURL *url = [NSURL fileURLWithPath:[NSString stringWithUTF8String:filePath]]; UIActivityViewController *cont = [[UIActivityViewController alloc] initWithActivityItems:[NSArray arrayWithObject:url] applicationActivities:nil]; + cont.popoverPresentationController.barButtonItem = shareButton; [self presentViewController:cont animated:YES completion:nil]; [cont release]; } -- cgit v1.2.3