Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Unfortunately, customizing the subject field of the <code>UIActivityViewController</code> mail composer is not working yet.</p> <p>There is a documented and reported bug regarding trying to customize this discussed here:</p> <p><a href="https://stackoverflow.com/questions/12623260/how-do-i-set-recipients-for-uiactivityviewcontroller-in-ios-6">iphone - How do I set recipients for UIActivityViewController in iOS 6?</a></p> <hr> <p>If this were working, according to the documentation, you would be able to customize these mail composer fields: </p> <blockquote> <p><strong>UIActivityTypeMail</strong>: The object posts the provided content to a new email message. When using this service, you can provide NSString and UIImage objects and NSURL objects pointing to local files as data for the activity items. You may also specify NSURL objects whose contents use the mailto scheme.</p> </blockquote> <p>So using the mailto scheme, <strong>when it is working</strong>, you should be able to customize those fields like this:</p> <pre><code> NSString *text = @"My mail text"; NSURL *recipients = [NSURL URLWithString:@"mailto:foo@bar.com?subject=Here-is-a-Subject"]; NSArray *activityItems = @[text, recipients]; UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil]; [self presentViewController:activityController animated:YES completion:nil]; </code></pre> <hr> <p>If your looking for other ways to customize the <code>UIActivityViewController</code>there is an excellent example project here:</p> <p><a href="https://github.com/russj/ios6ShareDemo" rel="nofollow noreferrer">https://github.com/russj/ios6ShareDemo</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload