多张图片整合成连续动画的代码
2012-12-29 17:54
239 查看
循环播放的代码
UIImageView* animView= [[UIImageView alloc] initWithFrame:self.view.frame];
animView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"01.gif"],
[UIImage imageNamed:@"02.gif"],
[UIImage imageNamed:@"03.gif"],nil];
// all frames will execute in 1.75 seconds
animView.animationDuration = 1.75;
// repeat the annimation forever
animView.animationRepeatCount = 0;
// start animating
[animView startAnimating];
// add the animation view to the main window
[self.view addSubview:animView];
UIImageView* animView= [[UIImageView alloc] initWithFrame:self.view.frame];
animView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"01.gif"],
[UIImage imageNamed:@"02.gif"],
[UIImage imageNamed:@"03.gif"],nil];
// all frames will execute in 1.75 seconds
animView.animationDuration = 1.75;
// repeat the annimation forever
animView.animationRepeatCount = 0;
// start animating
[animView startAnimating];
// add the animation view to the main window
[self.view addSubview:animView];
相关文章推荐
- 多张图片整合成连续动画的代码
- 多张图片整合成连续动画的代码
- 多张图片整合成连续动画的代码
- IOS多张图片整合成连续动画的代码
- 多张图片整合成连续动画的代码
- 多张图片整合成连续动画的代码
- ios多张图片整合成连续动画的代码
- 多张图片整合成连续动画
- 提高iPhone app里图片加载速度的方法---多张图片整合成连续动画的代码
- 2012-02-13 23:43 多张图片整合成连续动画的代码
- 多张图片合成连续动画实现(IOS)
- 多张图片连续动画实现
- 帧动画 连续播放多张图片动画 以及ui动画 SoundPool
- 多张图片连续动画实现
- iOS每日一点-使用多张连续的图片做小动画
- 史上最全的CSS hack方式一览 jQuery 图片轮播的代码分离 JQuery中的动画 C#中Trim()、TrimStart()、TrimEnd()的用法 marquee 标签的使用详情 js鼠标事件 js添加遮罩层 页面上通过地址栏传值时出现乱码的两种解决方法 ref和out的区别在c#中 总结
- Java Socket连续传输多张图片(不断开链接)
- 多张图片连续滚动效果的制作方法
- 上下左右连续滚动图片的JS代码
- php调整gif动画图片尺寸示例代码分享