tags:

views:

42

answers:

1

Hi,

How do I open SMS from my app and have the new message popped up and prepopulated?

Right now this is what I have
NSString *stringURL = @"sms:";
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];

That opens the SMS app but you have to click on new message etc.

Thanks,
Tee

+1  A: 

You can include a number in the URL to start writing a message to it. Supplying the message text is not supported by the public API (as far as I know).

zoul