简体   繁体   English

与iPhone上的内置SMS应用程序集成

[英]Integrating with built-in SMS application on iPhone

I want to make use of sms in my iPhone application. 我想在我的iPhone应用程序中使用短信。 I realized that its impossible to integrate SMS module, rather we can just switch over to iPhone's SMS application by passing number. 我意识到它不可能集成SMS模块,而是我们可以通过传递号码切换到iPhone的SMS应用程序。

I had tried the following but I am still not able to open inbuilt SMS application. 我尝试了以下操作,但是仍然无法打开内置的SMS应用程序。

NSString *no = @"9904143445";
NSString *sms = [NSString stringWithFormat:@"smsto:%@",no];
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:sms]];

Any idea on what might be going wrong? 对可能出什么问题有任何想法吗?

您的网址协议有误:“ smsto”应仅为“ sms”

我们已经从我们的网络应用程序[专门为iPhone构建的]中使用了sms:+1254545454,它绝对可以调用内置的SMS应用程序。

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

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