From 8f7b44a8c88fff09846f3961a4859d0ee8a100cd Mon Sep 17 00:00:00 2001 From: Filatov Evgen Date: Fri, 25 Mar 2016 15:42:00 +0200 Subject: [PATCH] file option will add attachment intead of text --- ActivityView.m | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ActivityView.m b/ActivityView.m index b5e03a4..9e36f54 100644 --- a/ActivityView.m +++ b/ActivityView.m @@ -122,7 +122,8 @@ - (void) showWithOptions:(NSDictionary *)args image:(UIImage *)image } if (file) { - [shareObject addObject:file]; + NSURL *localFile = [NSURL fileURLWithPath:file]; + [shareObject addObject:localFile]; } @@ -153,7 +154,7 @@ - (void) showWithOptions:(NSDictionary *)args image:(UIImage *)image activityView.popoverPresentationController.permittedArrowDirections = 0; } } - [ctrl.presentedViewController presentViewController:activityView animated:YES completion:nil]; + [ctrl presentViewController:activityView animated:YES completion:nil]; } @end