0

According to the accepted answer to this SO question, the correct, Apple-approved way to set the subject of an email through the activityviewcontroller is to use the following method:

activityViewController:subjectForActivityType: 

Can anyone provide an example of how to use this?

For example, how would I set the subject for an activity view controller named AVC.

 UIActivityViewController *avc = [[UIActivityViewController alloc] initWithActivityItems: activityItems applicationActivities:nil]; NSString *subject = @"Check this out"; 
3
  • stackoverflow.com/questions/28070038/… Commented Jan 26, 2017 at 3:16
  • The accepted answer does not show how to call it. I do not believe it's a delegate as I included this method and declare the protocol but it does not fire. The other answer (valueforKey) is undocumented. Commented Jan 26, 2017 at 3:47
  • it is a subclassed custom subclassed itemprovider. Check this thread a better more informed solution stackoverflow.com/questions/20581389/… Commented Jan 26, 2017 at 4:12

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.