Ios 使用MFMailComposeViewController时邮件的预览图像被剪切
我有一个应用程序可以将人们的照片共享到邮件中,但在iPhone 6 Plus上,我发现它的预览图像有时会被剪切,如下所示: 图片链接如下: 事实上,有一个字符串像从我的手机发送后的图像,它是削减了太多 但是,如果我将光标移动到图像的末尾,然后按键盘上的回车键,则图像和手机发送的内容将保持完整 对不起,我不能直接发送图像 以下是链接: 这是我的密码:Ios 使用MFMailComposeViewController时邮件的预览图像被剪切,ios,Ios,我有一个应用程序可以将人们的照片共享到邮件中,但在iPhone 6 Plus上,我发现它的预览图像有时会被剪切,如下所示: 图片链接如下: 事实上,有一个字符串像从我的手机发送后的图像,它是削减了太多 但是,如果我将光标移动到图像的末尾,然后按键盘上的回车键,则图像和手机发送的内容将保持完整 对不起,我不能直接发送图像 以下是链接: 这是我的密码: - (void) shareToMailWithALAsset:(ALAsset *) asset { if ([MFMailCompose
- (void) shareToMailWithALAsset:(ALAsset *) asset {
if ([MFMailComposeViewController canSendMail]) {
NSString *imageName = asset.defaultRepresentation.filename;
MFMailComposeViewController *mailVC = [MFMailComposeViewController new];
mailVC.mailComposeDelegate = self;
[mailVC setMessageBody:"test"
isHTML:NO];
UIImage *image = [UIImage imageWithCGImage:asset.defaultRepresentation.fullScreenImage];
NSData *data = UIImageJPEGRepresentation(image, 1);
[mailVC addAttachmentData: data
mimeType:@"image/jpeg"
fileName:imageName];
[self presentViewController:mailVC
animated:YES
completion:nil];
}
else {
}
}
任何帮助都将不胜感激。谢谢。另一个图片链接:我也有同样的问题。。。有时我会正确显示,但通常不会。你发现什么了吗?@donmarkusi,没有,没有任何有用的信息。