Need to open the SMS/MMS app and have an image pre-loaded into the text input in iPhone OS
- by jmurphy
Hello,
I am trying to open the SMS/MMS app on the iPhone and have an image that is saved in the camera roll pre loaded into the text field. Is this possible? Here is the code I have tried:
NSString *urlString = [NSString stringWithString:@"sms://asset/asset.JPG?id=1000000041&ext=JPG"];
NSString *escaped = [urlString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"URL: %@", escaped);
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:escaped]];
I received the URL from a return after I saved the image to the camera roll. Unfortunately this doesn't work. Any ideas?
Thanks!