- (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"]];
}
时间: 2024-11-01 23:03:03