- (void)toSend:(NSArray *)recipient content:(NSString *)content
{
MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init];
picker.messageComposeDelegate = self;
// picker.navigationBar.tintColor = [UIColor blackColor];
picker.body = content;
picker.recipients = recipient;
[self presentViewController:picker animated:YES completion:nil];
[picker release];
}
- (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result;
{
NSLog(@"didFinishWithResult, %d", result);
[self dismissViewControllerAnimated:YES completion:nil];
}
- (IBAction)send:(id)sender
{
NSArray *recipient = [NSArray arrayWithObjects:@"5325236", @"325325235", @"325235323523523523", nil];
[self toSend:recipient content:m_tfText.text];
}
- (IBAction)sendBySystem:(id)sender
{
NSString *number = @"32523523";
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"sms://%@", number]]];
}