0
除了我的下面的代碼之外,還有其他方法可以做動畫嗎?我問,因爲我會有一些非常強烈的動畫,可能會達到20-30幀。我也想知道是否可以在每一幀都播放聲音?任何其他方式做動畫?
popup.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"picture1.png"],
[UIImage imageNamed:@"picture2.png"],
[UIImage imageNamed:@"picture3.png"],
[UIImage imageNamed:@"picture4.png"],
[UIImage imageNamed:@"picture5.png"],
[UIImage imageNamed:@"picture6.png"],
[UIImage imageNamed:@"picture7.png"], nil];
popup.animationDuration = 1.750567;
popup.animationRepeatCount = 1;
[popup startAnimating];
[self.view addSubview:popup];
又一個音符,建立一個Photoshop宏轉儲從單獨的層出來的幀也會對另一側有所幫助。但是,您可能沒有使用PS。 – rougeExciter 2010-03-01 15:01:18
只需重新閱讀您的完整問題...您似乎無法設置要通知圖像更改的代表。這會讓我走向一個稍微不同的解決方案。我可能(如果我是你)設置一個定時器,以所需的播放速率觸發並自行循環播放圖像。這會讓我在更新圖像時播放聲音。 但是,您想播放一連串有聲圖像?剛剛播放電影怎麼樣:-) – rougeExciter 2010-03-01 15:05:51
你怎麼把一堆圖像變成電影格式? iMovie中? – NextRev 2010-03-01 15:41:35