IOS:动画爆炸云

时间:2013-01-04 11:57:14

标签: ios xcode animation

我想在我的应用中插入一个特定的动画,它必须像云爆炸一样......你知道什么时候在xcode中留下一个断点吗?这样......你能告诉我怎么做的吗?感谢

2 个答案:

答案 0 :(得分:2)

这可以通过以下代码来实现:

NSArray * imageArray  = [[NSArray alloc] initWithObjects:[UIImage imageNamed:@"1.png"], [UIImage imageNamed:@"2.png"], nil]; //this will be the frames of animation images in sequence.
 ringImage = [[UIImageView alloc]initWithFrame:CGRectMake(100,200,600,600)];
 ringImage.animationImages = imageArray;
 ringImage.animationDuration = 1.5;//this the animating speed which you can modify
 ringImage.contentMode = UIViewContentModeScaleAspectFill;
 [ringImage startAnimating];//this method actually does the work of animating your frames.

这应该让你去.. :))

答案 1 :(得分:0)

您可以使用一组图片制作动画UIImageView