0
我想插入我的应用程序一个特定的动画,它必须是云爆炸......你知道当你离开断点在Xcode?以这种方式......你能告诉我怎么做到的吗?谢谢IOS:动画爆炸云
我想插入我的应用程序一个特定的动画,它必须是云爆炸......你知道当你离开断点在Xcode?以这种方式......你能告诉我怎么做到的吗?谢谢IOS:动画爆炸云
这可以通过这一段代码来实现:
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.
这应该让你去.. :)
你可以制作一个动画UIImageView
,与一组图像。