swift - Sharing PDF - blank from Mail.app but OK over Airdrop -
i'm sharing pdf using built in share activity action sheet using following code:
if let pdf = pdfdata { let vc = uiactivityviewcontroller(activityitems: [pdf], applicationactivities: []) if (vc.responds(to: #selector(getter: popoverpresentationcontroller))) { vc.popoverpresentationcontroller?.sourceview = btnshare; } self.present(vc, animated: true) } else { showtextalertwithimage... ... } when sharing popover displayed, tapping on airdrop , sharing nearby computer pdf works expected.
but if choose mail sharing list pdf blank. please know why?
it's same pdf that's being shared in both situations. if matters, mail account outlook account. sharing pdf through gmail app produces correct pdf, attachment not include '.pdf' file extension.
Comments
Post a Comment