0

现在我有一个树的 UIImageView,上面放置了各种 UI 元素。我觉得这种看起来很无聊。我想做的是让我的树在风中飘扬。

我的计划是在 Blender 中创建我的动画,然后将其导出为视频,并使用此视频代替我的背景 UIImageView。

A)是否可以以这种方式使用视频?

B) 我需要什么类型的视图?

C) 是否可以循环播放视频?


因为我还没有开始制作动画,所以我很灵活,愿意接受其他建议来达到同样的效果。

谢谢!

4

1 回答 1

1

这是一种方式,它有很多图像并将这些图像传递给 UIImageView。

您有许多图像并将这些图像保存在一个数组中。

backgroundImageView.animationImages = imagesArray;//pass in the array
backgroundImageView.animationRepeatCount = 0;
backgroundImageView.animationDuration = duration;//set some time.
[backgroundImageView startAnimating];

希望这有帮助..只是一个建议

于 2013-04-08T18:54:00.937 回答