我有2个动画。应用程序加载时的第一个,第二个将保持用户体验的其余部分。
简而言之,这就是我想做的事情
1) 应用加载时加载的动画“A”。2)然后我想隐藏动画“A”并将其替换为相同坐标上的动画“B”3)让动画“B”在任何其他时间或以 30 秒或 45 秒的间隔播放
动画A
[UIView animateWithDuration:2.5
delay:2.0
options:UIViewAnimationCurveEaseIn
animations:^{[buhoButton setFrame:CGRectMake(91, 185, 130, 130)];}completion:nil];
动画B
animation.animationImages = [NSArray arrayWithObjects:[UIImage imageNamed:@"Buho128x128_0.png"],
[UIImage imageNamed:@"Buho128x128_1.png"],
[UIImage imageNamed:@"Buho128x128_2.png"],
[UIImage imageNamed:@"Buho128x128_3.png"],
[UIImage imageNamed:@"Buho128x128_4.png"],
[UIImage imageNamed:@"Buho128x128_3.png"],
[UIImage imageNamed:@"Buho128x128_2.png"],
[UIImage imageNamed:@"Buho128x128_1.png"],
[UIImage imageNamed:@"Buho128x128_0.png"], nil];
[animation setAnimationRepeatCount:-1];
animation.animationDuration = 1;
[animation startAnimating];
这可能吗?