对于这个示例代码,我的数组中有 3 个图像,它只是在没有任何样式的情况下进行动画处理。我想像淡入淡出样式一样进行动画处理。
NSArray *imarray = [[NSArray alloc] initWithObjects:
[UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@/lady1_open.png", path]],
[UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@/lady1_open2.png", path]],
[UIImage imageWithContentsOfFile:[NSString stringWithFormat:@"%@/lady1_open3.png", path]],
nil];
bingo_girl.animationImages=imarray;
bingo_girl.animationDuration=5;
bingo_girl.animationRepeatCount=0;
[bingo_girl.layer addAnimation:transition forKey:nil];
[bingo_girl startAnimating];