目前我正在iPhone應用程序工作,使用MFMessageComposeViewController來開發此應用程序,並且其工作正常。如何在iPhone設備中發送消息?
但我想,郵件撰寫屏幕不顯示在屏幕上,則該消息編程方式發送, 如何做到這一點?有可能的?請幫我
我嘗試這樣做:
MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease];
if([MFMessageComposeViewController canSendText])
{
controller.body = @"Hi";
controller.recipients = [NSArray arrayWithObjects:@"12345678", @"87654321", nil];
controller.messageComposeDelegate = self;
[self presentModalViewController:controller animated:YES];
}
檢查這個帖子: http://stackoverflow.com/questions/10848/how-to-programmatically-send-sms-on-the-iphone – 2012-10-19 06:02:39