开发者

sending message to pre configured numbers

Hai I am developing a new application. In that send a message to pre configured numbers and the user selecting numbers. How it is possible? when then send button is pressed开发者_Go百科. Please help. Can any give me some Sample code or tutorial.

Thank You


Please read the below SO post,

How to send SMS and number from contacts?

Here is link could help you ...

http://iosdevelopertips.com/cocoa/launching-other-apps-within-an-iphone-application.html

SMS To open the SMS application, just use the sms: protocol in your URL:

NSString *stringURL = @"sms:";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];

You can specify a phone number, but apparently not a default text for your message:

NSString *stringURL = @"sms:+12345678901";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜