1
A
回答
0
在這裏,我得到了解決方案。
UIImageView* animatedImageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
animatedImageView.animationImages = [NSArray arrayWithObjects:
[UIImage imageNamed:@"default1.jpg"],
[UIImage imageNamed:@"default2.jpg"],
[UIImage imageNamed:@"default3.jpg"],
[UIImage imageNamed:@"default4.jpg"],
[UIImage imageNamed:@"default5.jpg"],
[UIImage imageNamed:@"default6.jpg"],
[UIImage imageNamed:@"default7.jpg"],
[UIImage imageNamed:@"default8.jpg"],
[UIImage imageNamed:@"default9.jpg"],
[UIImage imageNamed:@"default10.jpg"],
[UIImage imageNamed:@"default11.jpg"],
[UIImage imageNamed:@"default12.jpg"],
[UIImage imageNamed:@"default13.jpg"],
[UIImage imageNamed:@"default14.jpg"],
[UIImage imageNamed:@"default15.jpg"], nil];
animatedImageView.animationDuration = 3.0f;
animatedImageView.animationRepeatCount = 0;
[animatedImageView startAnimating];
[self.view addSubview: animatedImageView];
1
是的你可以 - 我假設你想要一個動畫GIF?
它和靜態背景是一樣的CSS規則。
body {
background: url(animated.gif);
}
相關問題
- 1. GiF作爲JFrame的背景
- 2. 如何將.gif作爲背景圖像顯示?
- 3. Chrome動畫GIF背景圖像沒有播放 - 背景大小
- 4. matlab繪圖圖像作爲背景圖
- 5. 跟蹤像素(透明GIF)作爲樣式表中的背景圖像?
- 6. 背景顏色藏漢作爲背景圖像中不工作
- 7. GIF圖像在背景圖像屬性需要停止動畫
- 8. 在背景圖像背景圖像
- 9. 透明PNG/GIF雕刻出的背景圖像背後
- 10. 獲取多個圖像作爲背景
- 11. 拉伸圖像作爲背景
- 12. 作爲背景的JPanel上的圖像
- 13. CSS - 精靈作爲背景圖像
- 14. 形狀背景作爲圖像
- 15. 作爲div背景的中心圖像
- 16. 作爲Android中的背景大圖像
- 17. SVG作爲背景圖像問題
- 18. 透明PNG作爲背景圖像
- 19. Reportlab:添加圖像作爲背景
- 20. 圖像作爲JScrollPane中的背景
- 21. 上傳後顯示背景爲透明背景的GIF圖像顯示黑色背景?
- 22. celltable - 如何使用圖像作爲celltable背景(或行背景)
- 23. 如何獲取rainyday.js使用CSS背景圖像作爲背景?
- 24. 重新啓動動畫GIF作爲背景圖
- 25. 背景圖像不工作
- 26. 背景圖像不工作
- 27. 刪除GIF圖像背景以匹配GWT中的原始背景?
- 28. 爲GIF圖像
- 29. 圖像背景
- 30. 背景圖像
這看起來不像一個編程問題。 – 2010-07-06 04:48:25
@marcelo 所以,笏你以爲是。 c我的回答...... – iscavengers 2010-07-06 05:01:24
看起來有人想把一些壁紙加載到他們的iPhone上。另一個答案假設完全不同的情況,並且得到了投票(不是我)的事實表明,混淆不是我一個人。 – 2010-07-06 05:11:09