2013-01-04 73 views
0

我想插入我的應用程序一個特定的動畫,它必須是雲爆炸......你知道當你離開斷點在Xcode?以這種方式......你能告訴我怎麼做到的嗎?謝謝IOS:動畫爆炸雲

回答

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. 

這應該讓你去.. :)

0

你可以製作一個動畫UIImageView,與一組圖像。