0

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. Please help. Can any give me some Sample code or tutorial.

Thank You

Priya
  • 157
  • 1
  • 3
  • 13
  • Take a look at this docs http://developer.apple.com/library/ios/#documentation/MessageUI/Reference/MFMessageComposeViewController_class/Reference/Reference.html – Jorge Apr 01 '11 at 07:35
  • can we check through the simulator? – Priya Apr 01 '11 at 07:37

1 Answers1

0

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];
Cœur
  • 37,241
  • 25
  • 195
  • 267
Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76