图片变动动画

- (void)setAnimationMIC{
NSMutableArray *arrayM = [NSMutableArray array];
//从路径取出图像 加载到数组
for (int i =0; i<4; i++) {
UIImage *image = [UIImage imageNamed:[NSString stringWithFormat:@"volume_%d.png",i]];
[arrayM addObject:image];
}
//设置动画显示数组
imageview.animationImages = arrayM;
imageview.animationDuration = arrayM.count*0.2;//一个完整动画显示所用时间
imageview.animationRepeatCount = 0;//重复的次数 0表示一直重复
[imageview startAnimating];

[songPoetryMICCenter setImage:[UIImage imageNamed:@"button_record_big.png"]];
}

posted @ 2015-09-01 18:25  OIMMZC  阅读(234)  评论(0编辑  收藏  举报