Skip to content

Commit

Permalink
file option will add attachment instead of text
Browse files Browse the repository at this point in the history
  • Loading branch information
wtfil committed Mar 25, 2016
1 parent 7ecfbb0 commit a649ae2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ActivityView.m
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ - (void) showWithOptions:(NSDictionary *)args image:(UIImage *)image
}

if (file) {
[shareObject addObject:file];
NSURL *localFile = [NSURL fileURLWithPath:file];
[shareObject addObject:localFile];
}


Expand Down Expand Up @@ -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

0 comments on commit a649ae2

Please sign in to comment.