似乎不可能在电子邮件中嵌入完整的分辨率资产。如果我使用 fullScreenImage 表示,它会很好地工作。我想图像大小应该有一些限制,但我找不到任何有关它的信息。我在 iPhone 4S 上,全分辨率图像为 2448 x 3264 像素。
代码:
ALAssetRepresentation *assetRepresentation = [_asset defaultRepresentation];
CGImageRef imageRef = [assetRepresentation fullResolutionImage];
UIImage *img = [UIImage imageWithCGImage:imageRef scale:[assetRepresentation scale] orientation:[assetRepresentation orientation]];
UIActivityViewController *activityController = [[UIActivityViewController alloc] initWithActivityItems:@[img] applicationActivities:nil];
[self presentViewController:activityController animated:YES completion:nil];
谢谢!