简体   繁体   English

需要打开SMS / MMS应用并将图像预加载到iPhone OS中的文本输入中

[英]Need to open the SMS/MMS app and have an image pre-loaded into the text input in iPhone OS

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. 我正在尝试在iPhone上打开SMS / MMS应用程序,并将保存在相机胶卷中的图像预先加载到文本字段中。 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. 将图片保存到相机胶卷后,我从返回处收到了URL。 Unfortunately this doesn't work. 不幸的是,这不起作用。 Any ideas? 有任何想法吗?

Thanks! 谢谢!

I don't think that's possible. 我认为那是不可能的。 You can pass along a phone number and that is about it. 您可以传递一个电话号码,仅此而已。

Uphone URL Schemes Uphone URL方案

我相信您可以直接通过自己的应用在iOS 4.0中编写SMS,但不确定是否要附加图片...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM