越狱手机通过程序实现后台拨打电话和发短信,是谁做过吗?对于短信在网上找到了一些方法,不过都没有效果,具体代码如下:
MFMessageComposeViewController *controller = [MFMessageComposeViewController alloc] init] autorelease];
if([MFMessageComposeViewController canSendText])
{
controller.body = @“Hello from Mugunth”;
controller.recipients = [NSArray arrayWithObjects:@“15906502889”, @“15906502889”, nil];
controller.messageComposeDelegate = self;
controller.delegate = self;
[self presentModalViewController:controller animated:YES];
}
请大神指点一下!