(iphone)动画时我可以在图像之间给出不同的间隔吗?

发布于 2024-10-10 08:04:25 字数 473 浏览 0 评论 0原文

我正在对几张图像进行动画处理,如下所示。

     UIImageView* animationView = [[UIImageView alloc] initWithFrame: self.animationViewContainer.bounds];
    animationView.animationImages = animationArray;
    animationView.animationDuration = 0.5;
    animationView.animationRepeatCount = 5;
    [animationView startAnimating];

我想做的是控制动画图像之间的持续时间。
例如,显示 image1 0.3 秒 image2 0.5 秒。

一定有某种方法可以做到这一点,但很难找到答案。
我以前在这里问过同样的问题,但问题的措辞不太清楚。

谢谢

I'm animating several image as follows.

     UIImageView* animationView = [[UIImageView alloc] initWithFrame: self.animationViewContainer.bounds];
    animationView.animationImages = animationArray;
    animationView.animationDuration = 0.5;
    animationView.animationRepeatCount = 5;
    [animationView startAnimating];

What I'd like to do is, controlling duration between animationImages.
For instance, show image1 for 0.3 sec image2 for 0.5 sec..

There must be some way to do this, but hard to find an answer.
I've asked the same question here before, but wording of the question wasn't so clear.

Thank you

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

ま昔日黯然 2024-10-17 08:04:25

您可以将一张图像设置多次,例如将间隔设置为 0.3 秒,并显示一张图像两次以获得 0.6 秒。

You can set one image more then one time, for example set the interval to 0.3 sec and display one twice to get 0.6 seconds.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文