I am using UIActivityViewController
for sharing information through email. We are able to send email with body, attachments with no problem. But how do we set the subject title for the email.
I notice this question: How to set a mail Subject in UIActivityViewController?
The accepted solution is using UIActivityItemSource
with this following API activityViewController:subjectForActivityType:. However, our code doesn't conform to UIActivityItemSource
because we are using UIActivityItemProvider
.
UIActivityItemSource
You can use this protocol in situations where you want to provide the data from one of your app’s existing objects instead of creating a separate UIActivityItemProvider object.
So the complete question is:
How do I set the email subject if I am using UIActivityItemProvider
instead of UIActivityItemSource?