Hello all:
I am developing a simple application which has to send an SMS message from the app itself instead of launching the native Text app.
Here's my action now. What should I change to achieve my desired functionality?
-(IBAction)startButtonPressed
{
NSString *phoneNumber = @"13136296693";
NSString *url = [NSString stringWithFormat: @"sms:%@",phoneNumber];
NSLog(@"Send SMS to: %@ ", url);
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
}
Thanks!
Thomas