MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];

picker.messageComposeDelegate= self;

picker.navigationBar.tintColor= [UIColor blackColor];

    picker.body = message; // 默认信息内容

// 默认收件人(可多个)

    //picker.recipients = [NSArray arrayWithObject:@"12345678901", nil];

[self presentModalViewController:picker animated:YES];

    [picker release];

 

 

 

//打电话

//点击拨打

-(IBAction) phoneButtonClicked:(id) sender{

 

UIButton *button = (UIButton *)sender;

NSDictionary *cellDic = [connectUsDataArray objectAtIndex:button.tag];

[self dialPhoneNumber:[cellDic objectForKey:@"subPhone"]];

[busniessAddresTable reloadData];

}

 

- (void) dialPhoneNumber:(NSString *)aPhoneNumber  

{  

    NSURL *phoneURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@",aPhoneNumber]];  

    if ( !phoneCallWebView ) {          

        phoneCallWebView = [[UIWebView alloc] initWithFrame:CGRectZero];  

    }  

    [phoneCallWebView loadRequest:[NSURLRequest requestWithURL:phoneURL]];  

}