I want to use a GIF in an Image on WatchKit, it is possible ?
我想在WatchKit上的Image中使用GIF,这有可能吗?
I think is not possible but maybe you know
我想是不可能的,但也许你知道
Thank you in advance
先感谢您
P.S : I'm french so if you speak french it suits me.
P.S:我是法国人,所以如果你说法语,那就适合我。
1 个解决方案
#1
If you check the WKInterfaceImage
docs, under "Animating a Series of Images", you'll see the following:
如果您检查WKInterfaceImage文档,在“动画一系列图像”下,您将看到以下内容:
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.
您可以从一组本地图像文件资源或现有UIImage对象创建动画图像。您可以使用它们构造一个新的UIImage对象,然后将其分配给WKInterfaceImage对象。
So, yes, you can do it. But you need to provide a series of static images rather than a finished GIF.
所以,是的,你可以做到。但是你需要提供一系列静态图像而不是完成的GIF。
#1
If you check the WKInterfaceImage
docs, under "Animating a Series of Images", you'll see the following:
如果您检查WKInterfaceImage文档,在“动画一系列图像”下,您将看到以下内容:
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.
您可以从一组本地图像文件资源或现有UIImage对象创建动画图像。您可以使用它们构造一个新的UIImage对象,然后将其分配给WKInterfaceImage对象。
So, yes, you can do it. But you need to provide a series of static images rather than a finished GIF.
所以,是的,你可以做到。但是你需要提供一系列静态图像而不是完成的GIF。