按顺序使用图像数组的动画 [英] Animation using array of images in sequence

查看:18
本文介绍了按顺序使用图像数组的动画的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一组图像,我想通过按顺序一个接一个地播放这些图像来制作动画.我想多次重复整个循环.我正在为 iPad 开发游戏.向我建议一种使用 Cocoa 框架在 Objective-C 中实现此功能的方法.

I have an array of images which I want to animate by playing these images one after the other in a sequence. I want to repeat the whole loop several times. I am developing a game for iPad. Suggest to me a method to achieve this functionality in Objective-C with the Cocoa framework.

推荐答案

查看 UIImageView.由于您没有向我们提供详细信息,因此很难说它是否符合您的需求,但这是一个好的开始.

See the animationImages property of UIImageView. It’s hard to say if it fits your needs as you don’t give us details, but it’s a good start.

这篇关于按顺序使用图像数组的动画的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆