내 프로그램에서 런타임에 이미지를 수정하면 전자 메일로 보내야합니다. 장치에 보관할 필요가 없습니다. 어떤 제안? 이미지가 마일 아이폰 = (UIImage 이메일로 보내기
- (void)emailImage{
MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
picker.mailComposeDelegate = self;
// Set the subject of email
[picker setSubject:@"MI FOTO FINAL"];
// Fill out the email body text
NSString *emailBody = @"Foto final";
// This is not an HTML formatted email
[picker setMessageBody:emailBody isHTML:NO];
NSData *data = UIImagePNGRepresentation(Foto.image);
[picker addAttachmentData:data mimeType:@"image/png" fileName:@"ImagenFinal"];
// [picker addAttachmentData:data mimeType:nil fileName:nil];
// Show email view
[self presentModalViewController:picker animated:YES];
}
전화로 이메일 계정을 올바르게 구성 했습니까? – Alexander