【问题标题】:Image sequence of .gif playing on WatchSimulator but not on AppleWatch在 Watch Simulator 上播放但在 Apple Watch 上不播放的 .gif 图像序列
【发布时间】:2015-08-03 10:37:14
【问题描述】:

我正在使用 watchOS2 b4

我有一个名为animatedImageWKInterfaceImage 已正确连接并且我正在使用

[self.animatedImage setImageNamed:@"image"];
[self.animatedImage startAnimatingWithImagesInRange:NSMakeRange(0, 65) duration:6.0 repeatCount:0];

为多个图像设置动画。这适用于模拟器,但图像不会显示在 AppleWatch 上。

我在 Watch-target 中添加了一个文件夹,其中包含所有图像。他们都被命名为image0.gif image1.gif等等。

还有其他人遇到过这种情况吗?

【问题讨论】:

    标签: ios apple-watch watchos-2


    【解决方案1】:

    当我从 .gif 更改为 .png 时,它起作用了。我猜模拟器可以处理 .gif 但 AppleWatch 不能。

    【讨论】:

      猜你喜欢
      • 2023-04-08
      • 1970-01-01
      • 1970-01-01
      • 2016-02-06
      • 2016-09-24
      • 1970-01-01
      • 2015-11-26
      • 2012-07-12
      • 1970-01-01
      相关资源
      最近更新 更多