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

查看:25
本文介绍了防止 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天全站免登陆