[iPhone类代码]图片切换展示动画代码
查看次数:6827
下载次数:299
上传时间:2013-09-06
大小:356 B
程序里面的一个背景动画,是仿造Flava实现的。
今天有人问起实现方式,就把代码放出来了。
使用方法
[lang=objc]
OIAnimationImageView *demoImage = [[OIAnimationImageView alloc]initWithFrame:CGRectMake(30, 100, 260, 200)];
[demoImage setImageArray:[NSArray arrayWithObjects:@"galaxy_00.jpg",@"galaxy_01.jpg",@"galaxy_02.jpg",@"galaxy_03.jpg", nil]];
[demoImage setScale:1.5f];
[demoImage setPositionDuration:12.0f];
[demoImage start];
[/lang]
收藏