删除发送小文件的可能性?

Remove the possibility to send small file size?

伙计们。

我正在尝试与 UIActivityViewController 分享 gif。我使用了以下代码:

NSURL *documentsDirectoryURL = [[NSFileManager defaultManager] URLForDirectory:NSDocumentDirectory inDomain:NSUserDomainMask appropriateForURL:nil create:YES error:nil];
NSURL *fileURL = [documentsDirectoryURL URLByAppendingPathComponent:@"animated.gif"];


NSString *text = @"This GIF was created successfully on Gifbooth https://itunes.apple.com/us/app/gifbooth-free-gif-maker-animated/id1031899651?ls=1&mt=8";
NSData *gifFile=[NSData dataWithContentsOfFile:fileURL.path options:NSDataReadingMappedAlways error:nil];
UIActivityViewController *controller = [[UIActivityViewController alloc] initWithActivityItems:@[text,gifFile] applicationActivities:nil];

[self presentViewController:controller animated:YES completion:nil];

当我选择通过电子邮件分享时,我得到了这个。

我想取消发送小文件的可能性。我只想发送真实大小的文件。

您正在使用默认邮件发送图片。您无法控制图像的大小。当然,您可以将非常小的图像发送到邮件,这样它就不会弹出要使用的图像大小。

或通过其他媒体发送图片。