Created
February 7, 2012 00:33
-
-
Save smartweb/1756193 to your computer and use it in GitHub Desktop.
iPhone开发,发送短信
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[[UIApplication sharedApplication] openURL: @"sms:12345678"]; | |
MFMessageComposeViewController *controller = [[[MFMessageComposeViewControlleralloc] init] autorelease]; | |
if([MFMessageComposeViewControllercanSendText]) | |
{ | |
controller.body= @"SMS content"; | |
# 接收短信人的号码 | |
controller.recipients = [NSArrayarrayWithObjects:@"12345678", @"87654321", nil]; | |
controller.messageComposeDelegate =self; | |
[self presentModalViewController:controller animated:YES]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment