tags:

views:

873

answers:

3
+1  Q: 

sms in iphone

I want to make use of sms in my iPhone application, i found that its an impossible to integrate whole module of sms in an iphone application, we can just switch over to iPhone's sms application by passing number.

I had tried following bt still i am not able to open inbuilt sms application.

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

kindly help me to find solution.

Thank you.

+3  A: 

We have used sms:+1254545454 from our web app [built specially for iPhone] and it invokes the in-built SMS application absolutely fine.

Vikram
+5  A: 

Your URL protocol is wrong: "smsto" should be just "sms"

Adam Wright
And don't forget; the SMS isn't working in the Simulator, only in your device.
Tubbe
A: 

I accord with a problem,how to send a mms attached with image?

emma