UIActivtyViewController and UIActivityTypeMail not obeying mailto NSURL objects.

Originator:n.vanhoorn
Number:rdar://14344842 Date Originated:03-Jul-2013 05:01 PM
Status:Open Resolved:
Product:iPhone SDK Product Version:iOS 6.0
Classification:UI/Usability Reproducible:Always
 
This is a duplicate of rdar://12393854

Summary:
UIActivityViewController won't set the recipients for UIActivityTypeMail using the NSURL mailto scheme as the class reference documents: "You may also specify NSURL objects whose contents use the mailto scheme."

Steps to Reproduce:

NSString *message = @"This is my message";
NSURL *recipients = [NSURL URLWithString:@"mailto:phill@3sidedcube.com"];
    
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:@[recipients, message] applicationActivities:nil];
    
[self presentViewController:activityViewController animated:YES completion:nil];

Expected Results:
For the mailto in the NSURL object to be added to the "To" field in the compose window.

Actual Results:
The mailto is prepended to the body of the message. 

Regression:
iOS 6.1 Simulator and iOS 6 devices.  Xcode 4.6.3

Notes:
http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UIActivity_Class/Reference/Reference.html#//apple_ref/occ/instm/UIActivity/activityType

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!