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