UIActivtyViewController and UIActivityTypeMail not obeying mailto NSURL objects.
Originator: | phillipcaudell | ||
Number: | rdar://12393854 | Date Originated: | 28-Sep-2012 12:16 PM |
Status: | Open | Resolved: | |
Product: | iPhone SDK | Product Version: | iOS 6.0 |
Classification: | Reproducible: | Always |
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.0 Simulator and iOS 6 devices. Xcode 4.5. 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!
Thanks, duped: rdar://12858829