Reputation: 17591
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
Upvotes: 0
Views: 1260
Reputation: 981
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..:)
Upvotes: 2