0

I want insert into my app a particular animation, It must be as cloud-explosion...do you know when you leave a breakpoint in xcode? in this way...can you tell me how make it? thanks

4

2 回答 2

2

This can be achieved by this piece of code:

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.

This should get you going..:)

于 2013-01-04T12:41:17.070 回答
0

You could make an animated UIImageView, with a set of images.

于 2013-01-04T11:59:11.477 回答