0

Is there any way to set an email subject line for say a document at http://www.mydomain.com/Download.aspx?InstanceID=1087&Type=doc

Now when I hit share and try to send it from an iPad, the subject line is: "http://www.mydomain.com/Download.aspx?InstanceID=1087&Type=doc"

When it should be customized by document: "Application Form", "Waiver Form", etc.

Do I set this in acrobat (it is a pdf) or is there some code I can use?

Thanks

user2600293
  • 21
  • 1
  • 8

1 Answers1

0

Check below code for the email for setting up your email subject:

UIActivityViewController* avc = [[UIActivityViewController alloc] initWithActivityItems:@[@"Your String to share"]
                                  applicationActivities:nil];
[avc setValue:@"Your email Subject" forKey:@"subject"];

avc.completionHandler = ^(NSString *activityType, BOOL completed) {
    // ...
};

Here the line

[avc setValue:@"Your email Subject" forKey:@"subject"];

Makes the subject as "Your email Subject" if user picks email option in the UIActivityViewController.

I hope it helps...

emreoktem
  • 2,409
  • 20
  • 36