ios - 我们可以在 WKImageView 中使用 GIF 吗?

标签 ios gif watchkit

我想在 WatchKitImage 中使用 GIF,这可能吗?

我认为这是不可能的,但也许你知道

提前致谢

P.S:我是法国人,所以如果你会说法语,那很适合我。

最佳答案

如果您检查WKInterfaceImage docs ,在“为一系列图像设置动画”下,您将看到以下内容:

You create animated images from a set of local image file resources or from existing UIImage objects. You use them to construct a new UIImage object, which you then assign to your WKInterfaceImage object.

所以,是的,你可以做到。但是您需要提供一系列静态图像而不是完成的 GIF。

关于ios - 我们可以在 WKImageView 中使用 GIF 吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30221886/

相关文章:

video - FFmpeg mov to mp4 to gif

javascript - 将 GIF 播放器 Web 组件转换为 React 组件?

javascript - 将 gif 添加到 p5.js "artwork"

ios - 如何在未显示的 Controller 中更新 WKInterfaceLabel 使用基于页面的 segue

ios - 是我不了解 UIActivityViewController,还是目前的实现很糟糕?

ios - UIScrollView 在拖动最后一页时淡出

ios - 单击 + Swift 预加载 UISearchBar 显示结果

iphone - 如何防止 subview 的剪辑部分仍然发生触摸事件?

swift - 在屏幕中间的 Apple Watch 上的 table 前查看图像(刷新动画)

ios - Apple Watchkit 模拟器不可用