ios - UIImagePickerController 无法正确显示 GIF

标签 ios swift uiimagepickercontroller gif

我正在为我的应用程序使用UIImagePickerController。这样,用户就可以选择所有不同类型的视觉媒体 - 图像、GIF 和视频(电影)。

但是,GIF 在默认情况下随 UIImagePickerController 附带的“编辑图像”屏幕中显示为图像。他们不动。

我不确定,但是有没有办法告诉imagePickerController在“编辑图像”屏幕中播放GIF?

以下一些图片可以向您展示我的意思:

Unanimated gif in the image album

GIF still not animated when user selects it and gets to this screen

在这里您可以看到,UIImagePickerViewController 的两个屏幕都没有正确显示 GIF

如有任何帮助,我们将不胜感激!

最佳答案

is there a way to tell the imagePickerController to play the GIFs in the "Edit image" screen

没有。任何公共(public) API 中都没有内置的 gif 动画显示。

关于ios - UIImagePickerController 无法正确显示 GIF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55834402/

相关文章:

ios - 在模态页面表上呈现模态表单

arrays - 从供应商函数填充数组的 Swifty 方法

xcode - Swift - 使用分段控件在同一个 webview 中切换多个本地 html 文件

ios - UIImagePickerController 中的前置摄像头

ios - swift : Making a get request to Get source code

objective-c - iOS objective-c 返回对象可用性/范围

ios - 使用 SwiftGif 制作慢速 gif 动画

ios - Swift 2.0 - 二元运算符 "|"无法应用于两个 UIUserNotificationType 操作数

iphone - 计算UIImage的 'brightness'的好方法?

ios - UIImagePicker 中的图像方向不正确