From a649ae27c8c3757de3cc1955c6f4c5a6b6fbd691 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 instead 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