セルが選択されたときに、テーブルビューにmailcomposerviewcontrollerを表示させようとしています。私は使用してみました:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
// Set up recipients
if ([arryData objectAtIndex:0]) {
[picker setSubject:@"To You"];
NSArray *toRecipients = [NSArray arrayWithObject:@"emailaddress@here.com"];
[picker setToRecipients:toRecipients];
// Fill out the email body text
NSString *emailBody = @"From Me";
[picker setMessageBody:emailBody isHTML:NO];
[self presentModalViewController:picker animated:YES];
[picker release];
}
}
それでも、これは私をクラッシュさせ、
which is waiting for a delayed presention of <MFMailComposeViewController: