防止MFMailComposeViewController缩放动画GIF [英] Preventing MFMailComposeViewController from scaling animated GIFs

查看:95
本文介绍了防止MFMailComposeViewController缩放动画GIF的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要附加一个动画GIF到要通过MFMailComposeViewController发送的电子邮件。如果GIF具有足够的大小,MFMailComposeViewController将询问用户他们是否想要将其调整为更小的大小。

I'm attaching an animated GIF to an email to be sent with MFMailComposeViewController. If the GIF is of sufficient size the MFMailComposeViewController will ask the user whether they want to resize it to a smaller size. Unfortunately, the animation will not be preserved in the resized image.

如何禁止MFMailComposeViewController重新调整图片大小或保留动画?

How do I either forbid MFMailComposeViewController to resize the image or make it preserve the animation?

推荐答案

没有内置API可以做到这一点,但一个选项是将动画GIF压缩为ZIP,然后附​​加。 MFMailComposeViewController不会提供调整ZIP的大小(除非它查看它的内容)。

There’s no built-in API to do this, but one option is to compress the animated GIF into a ZIP, then attach that. The MFMailComposeViewController won’t offer to resize the ZIP (unless it’s peeking into its contents).

这篇关于防止MFMailComposeViewController缩放动画GIF的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆